/*! For license information please see traceroute_v17.7.5.js.LICENSE.txt */
(()=>{var t={7705:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var g="",i=void 0!==e[5];return e[4]&&(g+="@supports (".concat(e[4],") {")),e[2]&&(g+="@media ".concat(e[2]," {")),i&&(g+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),g+=t(e),i&&(g+="}"),e[2]&&(g+="}"),e[4]&&(g+="}"),g})).join("")},e.i=function(t,g,i,n,A){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var C=0;C<this.length;C++){var I=this[C][0];null!=I&&(o[I]=!0)}for(var r=0;r<t.length;r++){var s=[].concat(t[r]);i&&o[s[0]]||(void 0!==A&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=A),g&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=g):s[2]=g),n&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=n):s[4]="".concat(n)),e.push(s))}},e}},6742:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},6738:t=>{"use strict";t.exports=function(t){return t[1]}},5358:function(t,e,g){!function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==g.g?g.g:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var A={exports:{}},o=function(t){return t&&t.Math===Math&&t},C=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),I=function(t){try{return!!t()}catch(t){return!0}},r=!I((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=r,a=Function.prototype,l=a.apply,c=a.call,u="object"==typeof Reflect&&Reflect.apply||(s?c.bind(l):function(){return c.apply(l,arguments)}),d=r,h=Function.prototype,f=h.call,p=d&&h.bind.bind(f,f),v=d?p:function(t){return function(){return f.apply(t,arguments)}},y=v,m=y({}.toString),b=y("".slice),w=function(t){return b(m(t),8,-1)},x=w,k=v,E=function(t){if("Function"===x(t))return k(t)},O="object"==typeof document&&document.all,T={all:O,IS_HTMLDDA:void 0===O&&void 0!==O},D=T.all,R=T.IS_HTMLDDA?function(t){return"function"==typeof t||t===D}:function(t){return"function"==typeof t},S={},N=!I((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),P=r,M=Function.prototype.call,B=P?M.bind(M):function(){return M.apply(M,arguments)},_={},z={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,j=F&&!z.call({1:2},1);_.f=j?function(t){var e=F(this,t);return!!e&&e.enumerable}:z;var L,Z,G=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=I,Y=w,W=Object,U=v("".split),H=V((function(){return!W("z").propertyIsEnumerable(0)}))?function(t){return"String"===Y(t)?U(t,""):W(t)}:W,Q=function(t){return null==t},K=Q,X=TypeError,J=function(t){if(K(t))throw new X("Can't call method on "+t);return t},q=H,$=J,tt=function(t){return q($(t))},et=R,gt=T.all,it=T.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:et(t)||t===gt}:function(t){return"object"==typeof t?null!==t:et(t)},nt={},At=nt,ot=C,Ct=R,It=function(t){return Ct(t)?t:void 0},rt=function(t,e){return arguments.length<2?It(At[t])||It(ot[t]):At[t]&&At[t][e]||ot[t]&&ot[t][e]},st=v({}.isPrototypeOf),at="undefined"!=typeof navigator&&String(navigator.userAgent)||"",lt=C,ct=at,ut=lt.process,dt=lt.Deno,ht=ut&&ut.versions||dt&&dt.version,ft=ht&&ht.v8;ft&&(Z=(L=ft.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!Z&&ct&&(!(L=ct.match(/Edge\/(\d+)/))||L[1]>=74)&&(L=ct.match(/Chrome\/(\d+)/))&&(Z=+L[1]);var pt=Z,vt=pt,yt=I,mt=C.String,bt=!!Object.getOwnPropertySymbols&&!yt((function(){var t=Symbol("symbol detection");return!mt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xt=rt,kt=R,Et=st,Ot=Object,Tt=wt?function(t){return"symbol"==typeof t}:function(t){var e=xt("Symbol");return kt(e)&&Et(e.prototype,Ot(t))},Dt=String,Rt=function(t){try{return Dt(t)}catch(t){return"Object"}},St=R,Nt=Rt,Pt=TypeError,Mt=function(t){if(St(t))return t;throw new Pt(Nt(t)+" is not a function")},Bt=Mt,_t=Q,zt=function(t,e){var g=t[e];return _t(g)?void 0:Bt(g)},Ft=B,jt=R,Lt=it,Zt=TypeError,Gt={exports:{}},Vt=C,Yt=Object.defineProperty,Wt="__core-js_shared__",Ut=C[Wt]||function(t,e){try{Yt(Vt,t,{value:e,configurable:!0,writable:!0})}catch(g){Vt[t]=e}return e}(Wt,{}),Ht=Ut;(Gt.exports=function(t,e){return Ht[t]||(Ht[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Qt=Gt.exports,Kt=J,Xt=Object,Jt=function(t){return Xt(Kt(t))},qt=Jt,$t=v({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return $t(qt(t),e)},ee=v,ge=0,ie=Math.random(),ne=ee(1..toString),Ae=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ne(++ge+ie,36)},oe=Qt,Ce=te,Ie=Ae,re=bt,se=wt,ae=C.Symbol,le=oe("wks"),ce=se?ae.for||ae:ae&&ae.withoutSetter||Ie,ue=function(t){return Ce(le,t)||(le[t]=re&&Ce(ae,t)?ae[t]:ce("Symbol."+t)),le[t]},de=B,he=it,fe=Tt,pe=zt,ve=function(t,e){var g,i;if("string"===e&&jt(g=t.toString)&&!Lt(i=Ft(g,t)))return i;if(jt(g=t.valueOf)&&!Lt(i=Ft(g,t)))return i;if("string"!==e&&jt(g=t.toString)&&!Lt(i=Ft(g,t)))return i;throw new Zt("Can't convert object to primitive value")},ye=TypeError,me=ue("toPrimitive"),be=Tt,we=function(t){var e=function(t,e){if(!he(t)||fe(t))return t;var g,i=pe(t,me);if(i){if(void 0===e&&(e="default"),g=de(i,t,e),!he(g)||fe(g))return g;throw new ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)}(t,"string");return be(e)?e:e+""},xe=it,ke=C.document,Ee=xe(ke)&&xe(ke.createElement),Oe=function(t){return Ee?ke.createElement(t):{}},Te=Oe,De=!N&&!I((function(){return 7!==Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Re=N,Se=B,Ne=_,Pe=G,Me=tt,Be=we,_e=te,ze=De,Fe=Object.getOwnPropertyDescriptor;S.f=Re?Fe:function(t,e){if(t=Me(t),e=Be(e),ze)try{return Fe(t,e)}catch(t){}if(_e(t,e))return Pe(!Se(Ne.f,t,e),t[e])};var je=I,Le=R,Ze=/#|\.prototype\./,Ge=function(t,e){var g=Ye[Ve(t)];return g===Ue||g!==We&&(Le(e)?je(e):!!e)},Ve=Ge.normalize=function(t){return String(t).replace(Ze,".").toLowerCase()},Ye=Ge.data={},We=Ge.NATIVE="N",Ue=Ge.POLYFILL="P",He=Ge,Qe=Mt,Ke=r,Xe=E(E.bind),Je=function(t,e){return Qe(t),void 0===e?t:Ke?Xe(t,e):function(){return t.apply(e,arguments)}},qe={},$e=N&&I((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),tg=it,eg=String,gg=TypeError,ig=function(t){if(tg(t))return t;throw new gg(eg(t)+" is not an object")},ng=N,Ag=De,og=$e,Cg=ig,Ig=we,rg=TypeError,sg=Object.defineProperty,ag=Object.getOwnPropertyDescriptor,lg="enumerable",cg="configurable",ug="writable";qe.f=ng?og?function(t,e,g){if(Cg(t),e=Ig(e),Cg(g),"function"==typeof t&&"prototype"===e&&"value"in g&&ug in g&&!g[ug]){var i=ag(t,e);i&&i[ug]&&(t[e]=g.value,g={configurable:cg in g?g[cg]:i[cg],enumerable:lg in g?g[lg]:i[lg],writable:!1})}return sg(t,e,g)}:sg:function(t,e,g){if(Cg(t),e=Ig(e),Cg(g),Ag)try{return sg(t,e,g)}catch(t){}if("get"in g||"set"in g)throw new rg("Accessors not supported");return"value"in g&&(t[e]=g.value),t};var dg=qe,hg=G,fg=N?function(t,e,g){return dg.f(t,e,hg(1,g))}:function(t,e,g){return t[e]=g,t},pg=C,vg=u,yg=E,mg=R,bg=S.f,wg=He,xg=nt,kg=Je,Eg=fg,Og=te,Tg=function(t){var e=function(g,i,n){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(g);case 2:return new t(g,i)}return new t(g,i,n)}return vg(t,this,arguments)};return e.prototype=t.prototype,e},Dg=function(t,e){var g,i,n,A,o,C,I,r,s,a=t.target,l=t.global,c=t.stat,u=t.proto,d=l?pg:c?pg[a]:(pg[a]||{}).prototype,h=l?xg:xg[a]||Eg(xg,a,{})[a],f=h.prototype;for(A in e)i=!(g=wg(l?A:a+(c?".":"#")+A,t.forced))&&d&&Og(d,A),C=h[A],i&&(I=t.dontCallGetSet?(s=bg(d,A))&&s.value:d[A]),o=i&&I?I:e[A],i&&typeof C==typeof o||(r=t.bind&&i?kg(o,pg):t.wrap&&i?Tg(o):u&&mg(o)?yg(o):o,(t.sham||o&&o.sham||C&&C.sham)&&Eg(r,"sham",!0),Eg(h,A,r),u&&(Og(xg,n=a+"Prototype")||Eg(xg,n,{}),Eg(xg[n],A,o),t.real&&f&&(g||!f[A])&&Eg(f,A,o)))},Rg=Dg,Sg=N,Ng=qe.f;Rg({target:"Object",stat:!0,forced:Object.defineProperty!==Ng,sham:!Sg},{defineProperty:Ng});var Pg=nt.Object,Mg=A.exports=function(t,e,g){return Pg.defineProperty(t,e,g)};Pg.defineProperty.sham&&(Mg.sham=!0);var Bg=A.exports,_g=Bg,zg=n(_g),Fg=w,jg=Array.isArray||function(t){return"Array"===Fg(t)},Lg=Math.ceil,Zg=Math.floor,Gg=Math.trunc||function(t){var e=+t;return(e>0?Zg:Lg)(e)},Vg=function(t){var e=+t;return e!=e||0===e?0:Gg(e)},Yg=Vg,Wg=Math.min,Ug=function(t){return(e=t.length)>0?Wg(Yg(e),9007199254740991):0;var e},Hg=TypeError,Qg=function(t){if(t>9007199254740991)throw Hg("Maximum allowed index exceeded");return t},Kg=we,Xg=qe,Jg=G,qg=function(t,e,g){var i=Kg(e);i in t?Xg.f(t,i,Jg(0,g)):t[i]=g},$g={};$g[ue("toStringTag")]="z";var ti="[object z]"===String($g),ei=ti,gi=R,ii=w,ni=ue("toStringTag"),Ai=Object,oi="Arguments"===ii(function(){return arguments}()),Ci=ei?ii:function(t){var e,g,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(g=function(t,e){try{return t[e]}catch(t){}}(e=Ai(t),ni))?g:oi?ii(e):"Object"===(i=ii(e))&&gi(e.callee)?"Arguments":i},Ii=R,ri=Ut,si=v(Function.toString);Ii(ri.inspectSource)||(ri.inspectSource=function(t){return si(t)});var ai=ri.inspectSource,li=v,ci=I,ui=R,di=Ci,hi=ai,fi=function(){},pi=[],vi=rt("Reflect","construct"),yi=/^\s*(?:class|function)\b/,mi=li(yi.exec),bi=!yi.test(fi),wi=function(t){if(!ui(t))return!1;try{return vi(fi,pi,t),!0}catch(t){return!1}},xi=function(t){if(!ui(t))return!1;switch(di(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bi||!!mi(yi,hi(t))}catch(t){return!0}};xi.sham=!0;var ki=!vi||ci((function(){var t;return wi(wi.call)||!wi(Object)||!wi((function(){t=!0}))||t}))?xi:wi,Ei=jg,Oi=ki,Ti=it,Di=ue("species"),Ri=Array,Si=function(t,e){return new(function(t){var e;return Ei(t)&&(e=t.constructor,(Oi(e)&&(e===Ri||Ei(e.prototype))||Ti(e)&&null===(e=e[Di]))&&(e=void 0)),void 0===e?Ri:e}(t))(0===e?0:e)},Ni=I,Pi=pt,Mi=ue("species"),Bi=function(t){return Pi>=51||!Ni((function(){var e=[];return(e.constructor={})[Mi]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_i=Dg,zi=I,Fi=jg,ji=it,Li=Jt,Zi=Ug,Gi=Qg,Vi=qg,Yi=Si,Wi=Bi,Ui=pt,Hi=ue("isConcatSpreadable"),Qi=Ui>=51||!zi((function(){var t=[];return t[Hi]=!1,t.concat()[0]!==t})),Ki=function(t){if(!ji(t))return!1;var e=t[Hi];return void 0!==e?!!e:Fi(t)};_i({target:"Array",proto:!0,arity:1,forced:!Qi||!Wi("concat")},{concat:function(t){var e,g,i,n,A,o=Li(this),C=Yi(o,0),I=0;for(e=-1,i=arguments.length;e<i;e++)if(Ki(A=-1===e?o:arguments[e]))for(n=Zi(A),Gi(I+n),g=0;g<n;g++,I++)g in A&&Vi(C,I,A[g]);else Gi(I+1),Vi(C,I++,A);return C.length=I,C}});var Xi=Ci,Ji=String,qi=function(t){if("Symbol"===Xi(t))throw new TypeError("Cannot convert a Symbol value to a string");return Ji(t)},$i={},tn=Vg,en=Math.max,gn=Math.min,nn=function(t,e){var g=tn(t);return g<0?en(g+e,0):gn(g,e)},An=tt,on=nn,Cn=Ug,In=function(t){return function(e,g,i){var n,A=An(e),o=Cn(A),C=on(i,o);if(t&&g!=g){for(;o>C;)if((n=A[C++])!=n)return!0}else for(;o>C;C++)if((t||C in A)&&A[C]===g)return t||C||0;return!t&&-1}},rn={includes:In(!0),indexOf:In(!1)},sn={},an=te,ln=tt,cn=rn.indexOf,un=sn,dn=v([].push),hn=function(t,e){var g,i=ln(t),n=0,A=[];for(g in i)!an(un,g)&&an(i,g)&&dn(A,g);for(;e.length>n;)an(i,g=e[n++])&&(~cn(A,g)||dn(A,g));return A},fn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pn=hn,vn=fn,yn=Object.keys||function(t){return pn(t,vn)},mn=N,bn=$e,wn=qe,xn=ig,kn=tt,En=yn;$i.f=mn&&!bn?Object.defineProperties:function(t,e){xn(t);for(var g,i=kn(e),n=En(e),A=n.length,o=0;A>o;)wn.f(t,g=n[o++],i[g]);return t};var On,Tn=rt("document","documentElement"),Dn=Ae,Rn=Qt("keys"),Sn=function(t){return Rn[t]||(Rn[t]=Dn(t))},Nn=ig,Pn=$i,Mn=fn,Bn=sn,_n=Tn,zn=Oe,Fn="prototype",jn="script",Ln=Sn("IE_PROTO"),Zn=function(){},Gn=function(t){return"<"+jn+">"+t+"</"+jn+">"},Vn=function(t){t.write(Gn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Yn=function(){try{On=new ActiveXObject("htmlfile")}catch(t){}var t,e,g;Yn="undefined"!=typeof document?document.domain&&On?Vn(On):(e=zn("iframe"),g="java"+jn+":",e.style.display="none",_n.appendChild(e),e.src=String(g),(t=e.contentWindow.document).open(),t.write(Gn("document.F=Object")),t.close(),t.F):Vn(On);for(var i=Mn.length;i--;)delete Yn[Fn][Mn[i]];return Yn()};Bn[Ln]=!0;var Wn=Object.create||function(t,e){var g;return null!==t?(Zn[Fn]=Nn(t),g=new Zn,Zn[Fn]=null,g[Ln]=t):g=Yn(),void 0===e?g:Pn.f(g,e)},Un={},Hn=hn,Qn=fn.concat("length","prototype");Un.f=Object.getOwnPropertyNames||function(t){return Hn(t,Qn)};var Kn={},Xn=nn,Jn=Ug,qn=qg,$n=Array,tA=Math.max,eA=function(t,e,g){for(var i=Jn(t),n=Xn(e,i),A=Xn(void 0===g?i:g,i),o=$n(tA(A-n,0)),C=0;n<A;n++,C++)qn(o,C,t[n]);return o.length=C,o},gA=w,iA=tt,nA=Un.f,AA=eA,oA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Kn.f=function(t){return oA&&"Window"===gA(t)?function(t){try{return nA(t)}catch(t){return AA(oA)}}(t):nA(iA(t))};var CA={};CA.f=Object.getOwnPropertySymbols;var IA=fg,rA=function(t,e,g,i){return i&&i.enumerable?t[e]=g:IA(t,e,g),t},sA=qe,aA=function(t,e,g){return sA.f(t,e,g)},lA={},cA=ue;lA.f=cA;var uA,dA,hA,fA=nt,pA=te,vA=lA,yA=qe.f,mA=function(t){var e=fA.Symbol||(fA.Symbol={});pA(e,t)||yA(e,t,{value:vA.f(t)})},bA=B,wA=rt,xA=ue,kA=rA,EA=function(){var t=wA("Symbol"),e=t&&t.prototype,g=e&&e.valueOf,i=xA("toPrimitive");e&&!e[i]&&kA(e,i,(function(t){return bA(g,this)}),{arity:1})},OA=Ci,TA=ti?{}.toString:function(){return"[object "+OA(this)+"]"},DA=ti,RA=qe.f,SA=fg,NA=te,PA=TA,MA=ue("toStringTag"),BA=function(t,e,g,i){if(t){var n=g?t:t.prototype;NA(n,MA)||RA(n,MA,{configurable:!0,value:e}),i&&!DA&&SA(n,"toString",PA)}},_A=R,zA=C.WeakMap,FA=_A(zA)&&/native code/.test(String(zA)),jA=C,LA=it,ZA=fg,GA=te,VA=Ut,YA=Sn,WA=sn,UA="Object already initialized",HA=jA.TypeError,QA=jA.WeakMap;if(FA||VA.state){var KA=VA.state||(VA.state=new QA);KA.get=KA.get,KA.has=KA.has,KA.set=KA.set,uA=function(t,e){if(KA.has(t))throw new HA(UA);return e.facade=t,KA.set(t,e),e},dA=function(t){return KA.get(t)||{}},hA=function(t){return KA.has(t)}}else{var XA=YA("state");WA[XA]=!0,uA=function(t,e){if(GA(t,XA))throw new HA(UA);return e.facade=t,ZA(t,XA,e),e},dA=function(t){return GA(t,XA)?t[XA]:{}},hA=function(t){return GA(t,XA)}}var JA={set:uA,get:dA,has:hA,enforce:function(t){return hA(t)?dA(t):uA(t,{})},getterFor:function(t){return function(e){var g;if(!LA(e)||(g=dA(e)).type!==t)throw new HA("Incompatible receiver, "+t+" required");return g}}},qA=Je,$A=H,to=Jt,eo=Ug,go=Si,io=v([].push),no=function(t){var e=1===t,g=2===t,i=3===t,n=4===t,A=6===t,o=7===t,C=5===t||A;return function(I,r,s,a){for(var l,c,u=to(I),d=$A(u),h=qA(r,s),f=eo(d),p=0,v=a||go,y=e?v(I,f):g||o?v(I,0):void 0;f>p;p++)if((C||p in d)&&(c=h(l=d[p],p,u),t))if(e)y[p]=c;else if(c)switch(t){case 3:return!0;case 5:return l;case 6:return p;case 2:io(y,l)}else switch(t){case 4:return!1;case 7:io(y,l)}return A?-1:i||n?n:y}},Ao={forEach:no(0),map:no(1),filter:no(2),some:no(3),every:no(4),find:no(5),findIndex:no(6),filterReject:no(7)},oo=Dg,Co=C,Io=B,ro=v,so=N,ao=bt,lo=I,co=te,uo=st,ho=ig,fo=tt,po=we,vo=qi,yo=G,mo=Wn,bo=yn,wo=Un,xo=Kn,ko=CA,Eo=S,Oo=qe,To=$i,Do=_,Ro=rA,So=aA,No=Qt,Po=sn,Mo=Ae,Bo=ue,_o=lA,zo=mA,Fo=EA,jo=BA,Lo=JA,Zo=Ao.forEach,Go=Sn("hidden"),Vo="Symbol",Yo="prototype",Wo=Lo.set,Uo=Lo.getterFor(Vo),Ho=Object[Yo],Qo=Co.Symbol,Ko=Qo&&Qo[Yo],Xo=Co.RangeError,Jo=Co.TypeError,qo=Co.QObject,$o=Eo.f,tC=Oo.f,eC=xo.f,gC=Do.f,iC=ro([].push),nC=No("symbols"),AC=No("op-symbols"),oC=No("wks"),CC=!qo||!qo[Yo]||!qo[Yo].findChild,IC=function(t,e,g){var i=$o(Ho,e);i&&delete Ho[e],tC(t,e,g),i&&t!==Ho&&tC(Ho,e,i)},rC=so&&lo((function(){return 7!==mo(tC({},"a",{get:function(){return tC(this,"a",{value:7}).a}})).a}))?IC:tC,sC=function(t,e){var g=nC[t]=mo(Ko);return Wo(g,{type:Vo,tag:t,description:e}),so||(g.description=e),g},aC=function(t,e,g){t===Ho&&aC(AC,e,g),ho(t);var i=po(e);return ho(g),co(nC,i)?(g.enumerable?(co(t,Go)&&t[Go][i]&&(t[Go][i]=!1),g=mo(g,{enumerable:yo(0,!1)})):(co(t,Go)||tC(t,Go,yo(1,{})),t[Go][i]=!0),rC(t,i,g)):tC(t,i,g)},lC=function(t,e){ho(t);var g=fo(e),i=bo(g).concat(hC(g));return Zo(i,(function(e){so&&!Io(cC,g,e)||aC(t,e,g[e])})),t},cC=function(t){var e=po(t),g=Io(gC,this,e);return!(this===Ho&&co(nC,e)&&!co(AC,e))&&(!(g||!co(this,e)||!co(nC,e)||co(this,Go)&&this[Go][e])||g)},uC=function(t,e){var g=fo(t),i=po(e);if(g!==Ho||!co(nC,i)||co(AC,i)){var n=$o(g,i);return!n||!co(nC,i)||co(g,Go)&&g[Go][i]||(n.enumerable=!0),n}},dC=function(t){var e=eC(fo(t)),g=[];return Zo(e,(function(t){co(nC,t)||co(Po,t)||iC(g,t)})),g},hC=function(t){var e=t===Ho,g=eC(e?AC:fo(t)),i=[];return Zo(g,(function(t){!co(nC,t)||e&&!co(Ho,t)||iC(i,nC[t])})),i};ao||(Qo=function(){if(uo(Ko,this))throw new Jo("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?vo(arguments[0]):void 0,e=Mo(t),g=function(t){var i=void 0===this?Co:this;i===Ho&&Io(g,AC,t),co(i,Go)&&co(i[Go],e)&&(i[Go][e]=!1);var n=yo(1,t);try{rC(i,e,n)}catch(t){if(!(t instanceof Xo))throw t;IC(i,e,n)}};return so&&CC&&rC(Ho,e,{configurable:!0,set:g}),sC(e,t)},Ro(Ko=Qo[Yo],"toString",(function(){return Uo(this).tag})),Ro(Qo,"withoutSetter",(function(t){return sC(Mo(t),t)})),Do.f=cC,Oo.f=aC,To.f=lC,Eo.f=uC,wo.f=xo.f=dC,ko.f=hC,_o.f=function(t){return sC(Bo(t),t)},so&&So(Ko,"description",{configurable:!0,get:function(){return Uo(this).description}})),oo({global:!0,constructor:!0,wrap:!0,forced:!ao,sham:!ao},{Symbol:Qo}),Zo(bo(oC),(function(t){zo(t)})),oo({target:Vo,stat:!0,forced:!ao},{useSetter:function(){CC=!0},useSimple:function(){CC=!1}}),oo({target:"Object",stat:!0,forced:!ao,sham:!so},{create:function(t,e){return void 0===e?mo(t):lC(mo(t),e)},defineProperty:aC,defineProperties:lC,getOwnPropertyDescriptor:uC}),oo({target:"Object",stat:!0,forced:!ao},{getOwnPropertyNames:dC}),Fo(),jo(Qo,Vo),Po[Go]=!0;var fC=bt&&!!Symbol.for&&!!Symbol.keyFor,pC=Dg,vC=rt,yC=te,mC=qi,bC=Qt,wC=fC,xC=bC("string-to-symbol-registry"),kC=bC("symbol-to-string-registry");pC({target:"Symbol",stat:!0,forced:!wC},{for:function(t){var e=mC(t);if(yC(xC,e))return xC[e];var g=vC("Symbol")(e);return xC[e]=g,kC[g]=e,g}});var EC=Dg,OC=te,TC=Tt,DC=Rt,RC=fC,SC=Qt("symbol-to-string-registry");EC({target:"Symbol",stat:!0,forced:!RC},{keyFor:function(t){if(!TC(t))throw new TypeError(DC(t)+" is not a symbol");if(OC(SC,t))return SC[t]}});var NC=v([].slice),PC=jg,MC=R,BC=w,_C=qi,zC=v([].push),FC=Dg,jC=rt,LC=u,ZC=B,GC=v,VC=I,YC=R,WC=Tt,UC=NC,HC=bt,QC=String,KC=jC("JSON","stringify"),XC=GC(/./.exec),JC=GC("".charAt),qC=GC("".charCodeAt),$C=GC("".replace),tI=GC(1..toString),eI=/[\uD800-\uDFFF]/g,gI=/^[\uD800-\uDBFF]$/,iI=/^[\uDC00-\uDFFF]$/,nI=!HC||VC((function(){var t=jC("Symbol")("stringify detection");return"[null]"!==KC([t])||"{}"!==KC({a:t})||"{}"!==KC(Object(t))})),AI=VC((function(){return'"\\udf06\\ud834"'!==KC("\udf06\ud834")||'"\\udead"'!==KC("\udead")})),oI=function(t,e){var g=UC(arguments),i=function(t){if(MC(t))return t;if(PC(t)){for(var e=t.length,g=[],i=0;i<e;i++){var n=t[i];"string"==typeof n?zC(g,n):"number"!=typeof n&&"Number"!==BC(n)&&"String"!==BC(n)||zC(g,_C(n))}var A=g.length,o=!0;return function(t,e){if(o)return o=!1,e;if(PC(this))return e;for(var i=0;i<A;i++)if(g[i]===t)return e}}}(e);if(YC(i)||void 0!==t&&!WC(t))return g[1]=function(t,e){if(YC(i)&&(e=ZC(i,this,QC(t),e)),!WC(e))return e},LC(KC,null,g)},CI=function(t,e,g){var i=JC(g,e-1),n=JC(g,e+1);return XC(gI,t)&&!XC(iI,n)||XC(iI,t)&&!XC(gI,i)?"\\u"+tI(qC(t,0),16):t};KC&&FC({target:"JSON",stat:!0,arity:3,forced:nI||AI},{stringify:function(t,e,g){var i=UC(arguments),n=LC(nI?oI:KC,null,i);return AI&&"string"==typeof n?$C(n,eI,CI):n}});var II=CA,rI=Jt;Dg({target:"Object",stat:!0,forced:!bt||I((function(){II.f(1)}))},{getOwnPropertySymbols:function(t){var e=II.f;return e?e(rI(t)):[]}}),mA("asyncIterator"),mA("hasInstance"),mA("isConcatSpreadable"),mA("iterator"),mA("match"),mA("matchAll"),mA("replace"),mA("search"),mA("species"),mA("split");var sI=EA;mA("toPrimitive"),sI();var aI=rt,lI=BA;mA("toStringTag"),lI(aI("Symbol"),"Symbol"),mA("unscopables"),BA(C.JSON,"JSON",!0);var cI,uI,dI,hI=nt.Symbol,fI={},pI=N,vI=te,yI=Function.prototype,mI=pI&&Object.getOwnPropertyDescriptor,bI=vI(yI,"name"),wI={EXISTS:bI,PROPER:bI&&"something"===function(){}.name,CONFIGURABLE:bI&&(!pI||pI&&mI(yI,"name").configurable)},xI=!I((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),kI=te,EI=R,OI=Jt,TI=xI,DI=Sn("IE_PROTO"),RI=Object,SI=RI.prototype,NI=TI?RI.getPrototypeOf:function(t){var e=OI(t);if(kI(e,DI))return e[DI];var g=e.constructor;return EI(g)&&e instanceof g?g.prototype:e instanceof RI?SI:null},PI=I,MI=R,BI=it,_I=Wn,zI=NI,FI=rA,jI=ue("iterator"),LI=!1;[].keys&&("next"in(dI=[].keys())?(uI=zI(zI(dI)))!==Object.prototype&&(cI=uI):LI=!0),cI=!BI(cI)||PI((function(){var t={};return cI[jI].call(t)!==t}))?{}:_I(cI),MI(cI[jI])||FI(cI,jI,(function(){return this}));var ZI={IteratorPrototype:cI,BUGGY_SAFARI_ITERATORS:LI},GI=ZI.IteratorPrototype,VI=Wn,YI=G,WI=BA,UI=fI,HI=function(){return this},QI=v,KI=Mt,XI=R,JI=String,qI=TypeError,$I=ig,tr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,g={};try{(t=function(t,e,g){try{return QI(KI(Object.getOwnPropertyDescriptor(t,e)[g]))}catch(t){}}(Object.prototype,"__proto__","set"))(g,[]),e=g instanceof Array}catch(t){}return function(g,i){return $I(g),function(t){if("object"==typeof t||XI(t))return t;throw new qI("Can't set "+JI(t)+" as a prototype")}(i),e?t(g,i):g.__proto__=i,g}}():void 0),er=Dg,gr=B,ir=wI,nr=function(t,e,g,i){var n=e+" Iterator";return t.prototype=VI(GI,{next:YI(+!i,g)}),WI(t,n,!1,!0),UI[n]=HI,t},Ar=NI,or=BA,Cr=rA,Ir=fI,rr=ZI,sr=ir.PROPER,ar=rr.BUGGY_SAFARI_ITERATORS,lr=ue("iterator"),cr="keys",ur="values",dr="entries",hr=function(){return this},fr=function(t,e,g,i,n,A,o){nr(g,e,i);var C,I,r,s=function(t){if(t===n&&d)return d;if(!ar&&t&&t in c)return c[t];switch(t){case cr:case ur:case dr:return function(){return new g(this,t)}}return function(){return new g(this)}},a=e+" Iterator",l=!1,c=t.prototype,u=c[lr]||c["@@iterator"]||n&&c[n],d=!ar&&u||s(n),h="Array"===e&&c.entries||u;if(h&&(C=Ar(h.call(new t)))!==Object.prototype&&C.next&&(or(C,a,!0,!0),Ir[a]=hr),sr&&n===ur&&u&&u.name!==ur&&(l=!0,d=function(){return gr(u,this)}),n)if(I={values:s(ur),keys:A?d:s(cr),entries:s(dr)},o)for(r in I)(ar||l||!(r in c))&&Cr(c,r,I[r]);else er({target:e,proto:!0,forced:ar||l},I);return o&&c[lr]!==d&&Cr(c,lr,d,{name:n}),Ir[e]=d,I},pr=function(t,e){return{value:t,done:e}},vr=tt,yr=fI,mr=JA;qe.f;var br=fr,wr=pr,xr="Array Iterator",kr=mr.set,Er=mr.getterFor(xr);br(Array,"Array",(function(t,e){kr(this,{type:xr,target:vr(t),index:0,kind:e})}),(function(){var t=Er(this),e=t.target,g=t.index++;if(!e||g>=e.length)return t.target=void 0,wr(void 0,!0);switch(t.kind){case"keys":return wr(g,!1);case"values":return wr(e[g],!1)}return wr([g,e[g]],!1)}),"values"),yr.Arguments=yr.Array;var Or=C,Tr=Ci,Dr=fg,Rr=fI,Sr=ue("toStringTag");for(var Nr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Pr=Or[Nr],Mr=Pr&&Pr.prototype;Mr&&Tr(Mr)!==Sr&&Dr(Mr,Sr,Nr),Rr[Nr]=Rr.Array}var Br=hI,_r=ue,zr=qe.f,Fr=_r("metadata"),jr=Function.prototype;void 0===jr[Fr]&&zr(jr,Fr,{value:null}),mA("asyncDispose"),mA("dispose"),mA("metadata");var Lr=Br,Zr=v,Gr=rt("Symbol"),Vr=Gr.keyFor,Yr=Zr(Gr.prototype.valueOf),Wr=Gr.isRegisteredSymbol||function(t){try{return void 0!==Vr(Yr(t))}catch(t){return!1}};Dg({target:"Symbol",stat:!0},{isRegisteredSymbol:Wr});for(var Ur=Qt,Hr=rt,Qr=v,Kr=Tt,Xr=ue,Jr=Hr("Symbol"),qr=Jr.isWellKnownSymbol,$r=Hr("Object","getOwnPropertyNames"),ts=Qr(Jr.prototype.valueOf),es=Ur("wks"),gs=0,is=$r(Jr),ns=is.length;gs<ns;gs++)try{var As=is[gs];Kr(Jr[As])&&Xr(As)}catch(t){}var os=function(t){if(qr&&qr(t))return!0;try{for(var e=ts(t),g=0,i=$r(es),n=i.length;g<n;g++)if(es[i[g]]==e)return!0}catch(t){}return!1};Dg({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:os}),mA("matcher"),mA("observable"),Dg({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Wr}),Dg({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:os}),mA("metadataKey"),mA("patternMatch"),mA("replaceAll");var Cs=Lr,Is=n(Cs),rs=v,ss=Vg,as=qi,ls=J,cs=rs("".charAt),us=rs("".charCodeAt),ds=rs("".slice),hs=function(t){return function(e,g){var i,n,A=as(ls(e)),o=ss(g),C=A.length;return o<0||o>=C?t?"":void 0:(i=us(A,o))<55296||i>56319||o+1===C||(n=us(A,o+1))<56320||n>57343?t?cs(A,o):i:t?ds(A,o,o+2):n-56320+(i-55296<<10)+65536}},fs=(hs(!1),hs(!0)),ps=qi,vs=JA,ys=fr,ms=pr,bs="String Iterator",ws=vs.set,xs=vs.getterFor(bs);ys(String,"String",(function(t){ws(this,{type:bs,string:ps(t),index:0})}),(function(){var t,e=xs(this),g=e.string,i=e.index;return i>=g.length?ms(void 0,!0):(t=fs(g,i),e.index+=t.length,ms(t,!1))}));var ks=lA.f("iterator"),Es=ks,Os=n(Es);function Ts(t){return Ts="function"==typeof Is&&"symbol"==typeof Os?function(t){return typeof t}:function(t){return t&&"function"==typeof Is&&t.constructor===Is&&t!==Is.prototype?"symbol":typeof t},Ts(t)}var Ds=n(lA.f("toPrimitive"));function Rs(t){var e=function(t,e){if("object"!==Ts(t)||null===t)return t;var g=t[Ds];if(void 0!==g){var i=g.call(t,e||"default");if("object"!==Ts(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ts(e)?e:String(e)}function Ss(t,e){for(var g=0;g<e.length;g++){var i=e[g];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),zg(t,Rs(i.key),i)}}function Ns(t,e,g){return e&&Ss(t.prototype,e),g&&Ss(t,g),zg(t,"prototype",{writable:!1}),t}function Ps(t,e,g){return(e=Rs(e))in t?zg(t,e,{value:g,enumerable:!0,configurable:!0,writable:!0}):t[e]=g,t}var Ms=v,Bs=Mt,_s=it,zs=te,Fs=NC,js=r,Ls=Function,Zs=Ms([].concat),Gs=Ms([].join),Vs={},Ys=js?Ls.bind:function(t){var e=Bs(this),g=e.prototype,i=Fs(arguments,1),n=function(){var g=Zs(i,Fs(arguments));return this instanceof n?function(t,e,g){if(!zs(Vs,e)){for(var i=[],n=0;n<e;n++)i[n]="a["+n+"]";Vs[e]=Ls("C,a","return new C("+Gs(i,",")+")")}return Vs[e](t,g)}(e,g.length,g):e.apply(t,g)};return _s(g)&&(n.prototype=g),n},Ws=Ys;Dg({target:"Function",proto:!0,forced:Function.bind!==Ws},{bind:Ws});var Us=C,Hs=nt,Qs=function(t,e){var g=Hs[t+"Prototype"],i=g&&g[e];if(i)return i;var n=Us[t],A=n&&n.prototype;return A&&A[e]},Ks=Qs("Function","bind"),Xs=st,Js=Ks,qs=Function.prototype,$s=function(t){var e=t.bind;return t===qs||Xs(qs,t)&&e===qs.bind?Js:e},ta=n($s),ea=Mt,ga=Jt,ia=H,na=Ug,Aa=TypeError,oa=function(t){return function(e,g,i,n){ea(g);var A=ga(e),o=ia(A),C=na(A),I=t?C-1:0,r=t?-1:1;if(i<2)for(;;){if(I in o){n=o[I],I+=r;break}if(I+=r,t?I<0:C<=I)throw new Aa("Reduce of empty array with no initial value")}for(;t?I>=0:C>I;I+=r)I in o&&(n=g(n,o[I],I,A));return n}},Ca={left:oa(!1),right:oa(!0)},Ia=I,ra=function(t,e){var g=[][t];return!!g&&Ia((function(){g.call(null,e||function(){return 1},1)}))},sa="process"===w(C.process),aa=Ca.left;Dg({target:"Array",proto:!0,forced:!sa&&pt>79&&pt<83||!ra("reduce")},{reduce:function(t){var e=arguments.length;return aa(this,t,e,e>1?arguments[1]:void 0)}});var la=Qs("Array","reduce"),ca=st,ua=la,da=Array.prototype,ha=n((function(t){var e=t.reduce;return t===da||ca(da,t)&&e===da.reduce?ua:e})),fa=Ao.filter;Dg({target:"Array",proto:!0,forced:!Bi("filter")},{filter:function(t){return fa(this,t,arguments.length>1?arguments[1]:void 0)}});var pa=Qs("Array","filter"),va=st,ya=pa,ma=Array.prototype,ba=n((function(t){var e=t.filter;return t===ma||va(ma,t)&&e===ma.filter?ya:e})),wa=Ao.map;Dg({target:"Array",proto:!0,forced:!Bi("map")},{map:function(t){return wa(this,t,arguments.length>1?arguments[1]:void 0)}});var xa=Qs("Array","map"),ka=st,Ea=xa,Oa=Array.prototype,Ta=n((function(t){var e=t.map;return t===Oa||ka(Oa,t)&&e===Oa.map?Ea:e})),Da=jg,Ra=Ug,Sa=Qg,Na=Je,Pa=function(t,e,g,i,n,A,o,C){for(var I,r,s=n,a=0,l=!!o&&Na(o,C);a<i;)a in g&&(I=l?l(g[a],a,e):g[a],A>0&&Da(I)?(r=Ra(I),s=Pa(t,e,I,r,s,A-1)-1):(Sa(s+1),t[s]=I),s++),a++;return s},Ma=Pa,Ba=Mt,_a=Jt,za=Ug,Fa=Si;Dg({target:"Array",proto:!0},{flatMap:function(t){var e,g=_a(this),i=za(g);return Ba(t),(e=Fa(g,0)).length=Ma(e,g,g,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var ja=Qs("Array","flatMap"),La=st,Za=ja,Ga=Array.prototype,Va=n((function(t){var e=t.flatMap;return t===Ga||La(Ga,t)&&e===Ga.flatMap?Za:e}));var Ya=function(){function t(g,i,n){var A,o,C;e(this,t),Ps(this,"_listeners",{add:ta(A=this._add).call(A,this),remove:ta(o=this._remove).call(o,this),update:ta(C=this._update).call(C,this)}),this._source=g,this._transformers=i,this._target=n}return Ns(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return ha(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),Wa=function(){function t(g){e(this,t),Ps(this,"_transformers",[]),this._source=g}return Ns(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return ba(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Ta(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Va(e).call(e,t)})),this}},{key:"to",value:function(t){return new Ya(this._source,this._transformers,t)}}]),t}(),Ua=B,Ha=ig,Qa=zt,Ka=function(t,e,g){var i,n;Ha(t);try{if(!(i=Qa(t,"return"))){if("throw"===e)throw g;return g}i=Ua(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw g;if(n)throw i;return Ha(i),g},Xa=ig,Ja=Ka,qa=fI,$a=ue("iterator"),tl=Array.prototype,el=function(t){return void 0!==t&&(qa.Array===t||tl[$a]===t)},gl=Ci,il=zt,nl=Q,Al=fI,ol=ue("iterator"),Cl=function(t){if(!nl(t))return il(t,ol)||il(t,"@@iterator")||Al[gl(t)]},Il=B,rl=Mt,sl=ig,al=Rt,ll=Cl,cl=TypeError,ul=function(t,e){var g=arguments.length<2?ll(t):e;if(rl(g))return sl(Il(g,t));throw new cl(al(t)+" is not iterable")},dl=Je,hl=B,fl=Jt,pl=function(t,e,g,i){try{return i?e(Xa(g)[0],g[1]):e(g)}catch(e){Ja(t,"throw",e)}},vl=el,yl=ki,ml=Ug,bl=qg,wl=ul,xl=Cl,kl=Array,El=ue("iterator"),Ol=!1;try{var Tl=0,Dl={next:function(){return{done:!!Tl++}},return:function(){Ol=!0}};Dl[El]=function(){return this},Array.from(Dl,(function(){throw 2}))}catch(t){}var Rl=function(t,e){try{if(!e&&!Ol)return!1}catch(t){return!1}var g=!1;try{var i={};i[El]=function(){return{next:function(){return{done:g=!0}}}},t(i)}catch(t){}return g},Sl=function(t){var e=fl(t),g=yl(this),i=arguments.length,n=i>1?arguments[1]:void 0,A=void 0!==n;A&&(n=dl(n,i>2?arguments[2]:void 0));var o,C,I,r,s,a,l=xl(e),c=0;if(!l||this===kl&&vl(l))for(o=ml(e),C=g?new this(o):kl(o);o>c;c++)a=A?n(e[c],c):e[c],bl(C,c,a);else for(s=(r=wl(e,l)).next,C=g?new this:[];!(I=hl(s,r)).done;c++)a=A?pl(r,n,[I.value,c],!0):I.value,bl(C,c,a);return C.length=c,C};Dg({target:"Array",stat:!0,forced:!Rl((function(t){Array.from(t)}))},{from:Sl});var Nl=nt.Array.from,Pl=n(Nl),Ml=Cl,Bl=n(Ml),_l=n(Ml);Dg({target:"Array",stat:!0},{isArray:jg});var zl=nt.Array.isArray,Fl=n(zl);var jl=N,Ll=jg,Zl=TypeError,Gl=Object.getOwnPropertyDescriptor,Vl=jl&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Ll(t)&&!Gl(t,"length").writable)throw new Zl("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},Yl=Jt,Wl=Ug,Ul=Vl,Hl=Qg;Dg({target:"Array",proto:!0,arity:1,forced:I((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=Yl(this),g=Wl(e),i=arguments.length;Hl(g+i);for(var n=0;n<i;n++)e[g]=arguments[n],g++;return Ul(e,g),g}});var Ql=Qs("Array","push"),Kl=st,Xl=Ql,Jl=Array.prototype,ql=function(t){var e=t.push;return t===Jl||Kl(Jl,t)&&e===Jl.push?Xl:e},$l=n(ql);var tc=Dg,ec=jg,gc=ki,ic=it,nc=nn,Ac=Ug,oc=tt,Cc=qg,Ic=ue,rc=NC,sc=Bi("slice"),ac=Ic("species"),lc=Array,cc=Math.max;tc({target:"Array",proto:!0,forced:!sc},{slice:function(t,e){var g,i,n,A=oc(this),o=Ac(A),C=nc(t,o),I=nc(void 0===e?o:e,o);if(ec(A)&&(g=A.constructor,(gc(g)&&(g===lc||ec(g.prototype))||ic(g)&&null===(g=g[ac]))&&(g=void 0),g===lc||void 0===g))return rc(A,C,I);for(i=new(void 0===g?lc:g)(cc(I-C,0)),n=0;C<I;C++,n++)C in A&&Cc(i,n,A[C]);return i.length=n,i}});var uc=Qs("Array","slice"),dc=st,hc=uc,fc=Array.prototype,pc=function(t){var e=t.slice;return t===fc||dc(fc,t)&&e===fc.slice?hc:e},vc=pc,yc=n(vc),mc=n(Nl);function bc(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function wc(t,e){var g;if(t){if("string"==typeof t)return bc(t,e);var i=yc(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?mc(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?bc(t,e):void 0}}function xc(t,e){return function(t){if(Fl(t))return t}(t)||function(t,e){var g=null==t?null:void 0!==Is&&Bl(t)||t["@@iterator"];if(null!=g){var i,n,A,o,C=[],I=!0,r=!1;try{if(A=(g=g.call(t)).next,0===e){if(Object(g)!==g)return;I=!1}else for(;!(I=(i=A.call(g)).done)&&($l(C).call(C,i.value),C.length!==e);I=!0);}catch(t){r=!0,n=t}finally{try{if(!I&&null!=g.return&&(o=g.return(),Object(o)!==o))return}finally{if(r)throw n}}return C}}(t,e)||wc(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kc(t){return function(t){if(Fl(t))return bc(t)}(t)||function(t){if(void 0!==Is&&null!=Bl(t)||null!=t["@@iterator"])return mc(t)}(t)||wc(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ec=n(Br),Oc=Qs("Array","concat"),Tc=st,Dc=Oc,Rc=Array.prototype,Sc=n((function(t){var e=t.concat;return t===Rc||Tc(Rc,t)&&e===Rc.concat?Dc:e})),Nc=n(pc),Pc=rt,Mc=Un,Bc=CA,_c=ig,zc=v([].concat),Fc=Pc("Reflect","ownKeys")||function(t){var e=Mc.f(_c(t)),g=Bc.f;return g?zc(e,g(t)):e};Dg({target:"Reflect",stat:!0},{ownKeys:Fc});var jc=n(nt.Reflect.ownKeys),Lc=n(zl),Zc=Jt,Gc=yn;Dg({target:"Object",stat:!0,forced:I((function(){Gc(1)}))},{keys:function(t){return Gc(Zc(t))}});var Vc=n(nt.Object.keys),Yc=Ao.forEach,Wc=ra("forEach")?[].forEach:function(t){return Yc(this,t,arguments.length>1?arguments[1]:void 0)};Dg({target:"Array",proto:!0,forced:[].forEach!==Wc},{forEach:Wc});var Uc=Qs("Array","forEach"),Hc=Ci,Qc=te,Kc=st,Xc=Uc,Jc=Array.prototype,qc={DOMTokenList:!0,NodeList:!0},$c=function(t){var e=t.forEach;return t===Jc||Kc(Jc,t)&&e===Jc.forEach||Qc(qc,Hc(t))?Xc:e},tu=n($c),eu=Dg,gu=jg,iu=v([].reverse),nu=[1,2];eu({target:"Array",proto:!0,forced:String(nu)===String(nu.reverse())},{reverse:function(){return gu(this)&&(this.length=this.length),iu(this)}});var Au=Qs("Array","reverse"),ou=st,Cu=Au,Iu=Array.prototype,ru=function(t){var e=t.reverse;return t===Iu||ou(Iu,t)&&e===Iu.reverse?Cu:e},su=n(ru),au=Rt,lu=TypeError,cu=function(t,e){if(!delete t[e])throw new lu("Cannot delete property "+au(e)+" of "+au(t))},uu=Dg,du=Jt,hu=nn,fu=Vg,pu=Ug,vu=Vl,yu=Qg,mu=Si,bu=qg,wu=cu,xu=Bi("splice"),ku=Math.max,Eu=Math.min;uu({target:"Array",proto:!0,forced:!xu},{splice:function(t,e){var g,i,n,A,o,C,I=du(this),r=pu(I),s=hu(t,r),a=arguments.length;for(0===a?g=i=0:1===a?(g=0,i=r-s):(g=a-2,i=Eu(ku(fu(e),0),r-s)),yu(r+g-i),n=mu(I,i),A=0;A<i;A++)(o=s+A)in I&&bu(n,A,I[o]);if(n.length=i,g<i){for(A=s;A<r-i;A++)C=A+g,(o=A+i)in I?I[C]=I[o]:wu(I,C);for(A=r;A>r-i+g;A--)wu(I,A-1)}else if(g>i)for(A=r-i;A>s;A--)C=A+g-1,(o=A+i-1)in I?I[C]=I[o]:wu(I,C);for(A=0;A<g;A++)I[A+s]=arguments[A+2];return vu(I,r-i+g),n}});var Ou=Qs("Array","splice"),Tu=st,Du=Ou,Ru=Array.prototype,Su=n((function(t){var e=t.splice;return t===Ru||Tu(Ru,t)&&e===Ru.splice?Du:e})),Nu=N,Pu=v,Mu=B,Bu=I,_u=yn,zu=CA,Fu=_,ju=Jt,Lu=H,Zu=Object.assign,Gu=Object.defineProperty,Vu=Pu([].concat),Yu=!Zu||Bu((function(){if(Nu&&1!==Zu({b:1},Zu(Gu({},"a",{enumerable:!0,get:function(){Gu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},g=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[g]=7,i.split("").forEach((function(t){e[t]=t})),7!==Zu({},t)[g]||_u(Zu({},e)).join("")!==i}))?function(t,e){for(var g=ju(t),i=arguments.length,n=1,A=zu.f,o=Fu.f;i>n;)for(var C,I=Lu(arguments[n++]),r=A?Vu(_u(I),A(I)):_u(I),s=r.length,a=0;s>a;)C=r[a++],Nu&&!Mu(o,I,C)||(g[C]=I[C]);return g}:Zu,Wu=Yu;Dg({target:"Object",stat:!0,arity:2,forced:Object.assign!==Wu},{assign:Wu});var Uu=n(nt.Object.assign),Hu=Jt,Qu=NI,Ku=xI;Dg({target:"Object",stat:!0,forced:I((function(){Qu(1)})),sham:!Ku},{getPrototypeOf:function(t){return Qu(Hu(t))}});var Xu=nt.Object.getPrototypeOf;Dg({target:"Object",stat:!0,sham:!N},{create:Wn});var Ju=nt.Object,qu=function(t,e){return Ju.create(t,e)},$u=n(qu),td=nt,ed=u;td.JSON||(td.JSON={stringify:JSON.stringify});var gd=function(t,e,g){return ed(td.JSON.stringify,null,arguments)},id=n(gd),nd="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,Ad=TypeError,od=function(t,e){if(t<e)throw new Ad("Not enough arguments");return t},Cd=C,Id=u,rd=R,sd=nd,ad=at,ld=NC,cd=od,ud=Cd.Function,dd=/MSIE .\./.test(ad)||sd&&function(){var t=Cd.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),hd=function(t,e){var g=e?2:1;return dd?function(i,n){var A=cd(arguments.length,1)>g,o=rd(i)?i:ud(i),C=A?ld(arguments,g):[],I=A?function(){Id(o,this,C)}:o;return e?t(I,n):t(I)}:t},fd=Dg,pd=C,vd=hd(pd.setInterval,!0);fd({global:!0,bind:!0,forced:pd.setInterval!==vd},{setInterval:vd});var yd=Dg,md=C,bd=hd(md.setTimeout,!0);yd({global:!0,bind:!0,forced:md.setTimeout!==bd},{setTimeout:bd});var wd=n(nt.setTimeout),xd={exports:{}};!function(t){function e(t){if(t)return function(t){for(var g in e.prototype)t[g]=e.prototype[g];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function g(){this.off(t,g),e.apply(this,arguments)}return g.fn=e,this.on(t,g),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var g,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<i.length;n++)if((g=i[n])===e||g.fn===e){i.splice(n,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),g=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(g){i=0;for(var n=(g=g.slice(0)).length;i<n;++i)g[i].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(xd);var kd,Ed=n(xd.exports);function Od(){return Od=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var g=arguments[e];for(var i in g)Object.prototype.hasOwnProperty.call(g,i)&&(t[i]=g[i])}return t},Od.apply(this,arguments)}function Td(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Dd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}kd="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),g=1;g<arguments.length;g++){var i=arguments[g];if(null!=i)for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}return e}:Object.assign;var Rd,Sd=kd,Nd=["","webkit","Moz","MS","ms","o"],Pd="undefined"==typeof document?{style:{}}:document.createElement("div"),Md=Math.round,Bd=Math.abs,_d=Date.now;function zd(t,e){for(var g,i,n=e[0].toUpperCase()+e.slice(1),A=0;A<Nd.length;){if((i=(g=Nd[A])?g+n:e)in t)return i;A++}}Rd="undefined"==typeof window?{}:window;var Fd=zd(Pd.style,"touchAction"),jd=void 0!==Fd;var Ld="compute",Zd="auto",Gd="manipulation",Vd="none",Yd="pan-x",Wd="pan-y",Ud=function(){if(!jd)return!1;var t={},e=Rd.CSS&&Rd.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(g){return t[g]=!e||Rd.CSS.supports("touch-action",g)})),t}(),Hd="ontouchstart"in Rd,Qd=void 0!==zd(Rd,"PointerEvent"),Kd=Hd&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Xd="touch",Jd="mouse",qd=25,$d=1,th=4,eh=8,gh=1,ih=2,nh=4,Ah=8,oh=16,Ch=ih|nh,Ih=Ah|oh,rh=Ch|Ih,sh=["x","y"],ah=["clientX","clientY"];function lh(t,e,g){var i;if(t)if(t.forEach)t.forEach(e,g);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(g,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(g,t[i],i,t)}function ch(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function uh(t,e){return t.indexOf(e)>-1}var dh=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===Ld&&(t=this.compute()),jd&&this.manager.element.style&&Ud[t]&&(this.manager.element.style[Fd]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return lh(this.manager.recognizers,(function(e){ch(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(uh(t,Vd))return Vd;var e=uh(t,Yd),g=uh(t,Wd);return e&&g?Vd:e||g?e?Yd:Wd:uh(t,Gd)?Gd:Zd}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,g=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,n=uh(i,Vd)&&!Ud[Vd],A=uh(i,Wd)&&!Ud[Wd],o=uh(i,Yd)&&!Ud[Yd];if(n){var C=1===t.pointers.length,I=t.distance<2,r=t.deltaTime<250;if(C&&I&&r)return}if(!o||!A)return n||A&&g&Ch||o&&g&Ih?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function hh(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function fh(t){var e=t.length;if(1===e)return{x:Md(t[0].clientX),y:Md(t[0].clientY)};for(var g=0,i=0,n=0;n<e;)g+=t[n].clientX,i+=t[n].clientY,n++;return{x:Md(g/e),y:Md(i/e)}}function ph(t){for(var e=[],g=0;g<t.pointers.length;)e[g]={clientX:Md(t.pointers[g].clientX),clientY:Md(t.pointers[g].clientY)},g++;return{timeStamp:_d(),pointers:e,center:fh(e),deltaX:t.deltaX,deltaY:t.deltaY}}function vh(t,e,g){g||(g=sh);var i=e[g[0]]-t[g[0]],n=e[g[1]]-t[g[1]];return Math.sqrt(i*i+n*n)}function yh(t,e,g){g||(g=sh);var i=e[g[0]]-t[g[0]],n=e[g[1]]-t[g[1]];return 180*Math.atan2(n,i)/Math.PI}function mh(t,e){return t===e?gh:Bd(t)>=Bd(e)?t<0?ih:nh:e<0?Ah:oh}function bh(t,e,g){return{x:e/t||0,y:g/t||0}}function wh(t,e){var g=t.session,i=e.pointers,n=i.length;g.firstInput||(g.firstInput=ph(e)),n>1&&!g.firstMultiple?g.firstMultiple=ph(e):1===n&&(g.firstMultiple=!1);var A=g.firstInput,o=g.firstMultiple,C=o?o.center:A.center,I=e.center=fh(i);e.timeStamp=_d(),e.deltaTime=e.timeStamp-A.timeStamp,e.angle=yh(C,I),e.distance=vh(C,I),function(t,e){var g=e.center,i=t.offsetDelta||{},n=t.prevDelta||{},A=t.prevInput||{};e.eventType!==$d&&A.eventType!==th||(n=t.prevDelta={x:A.deltaX||0,y:A.deltaY||0},i=t.offsetDelta={x:g.x,y:g.y}),e.deltaX=n.x+(g.x-i.x),e.deltaY=n.y+(g.y-i.y)}(g,e),e.offsetDirection=mh(e.deltaX,e.deltaY);var r,s,a=bh(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=a.x,e.overallVelocityY=a.y,e.overallVelocity=Bd(a.x)>Bd(a.y)?a.x:a.y,e.scale=o?(r=o.pointers,vh((s=i)[0],s[1],ah)/vh(r[0],r[1],ah)):1,e.rotation=o?function(t,e){return yh(e[1],e[0],ah)+yh(t[1],t[0],ah)}(o.pointers,i):0,e.maxPointers=g.prevInput?e.pointers.length>g.prevInput.maxPointers?e.pointers.length:g.prevInput.maxPointers:e.pointers.length,function(t,e){var g,i,n,A,o=t.lastInterval||e,C=e.timeStamp-o.timeStamp;if(e.eventType!==eh&&(C>qd||void 0===o.velocity)){var I=e.deltaX-o.deltaX,r=e.deltaY-o.deltaY,s=bh(C,I,r);i=s.x,n=s.y,g=Bd(s.x)>Bd(s.y)?s.x:s.y,A=mh(I,r),t.lastInterval=e}else g=o.velocity,i=o.velocityX,n=o.velocityY,A=o.direction;e.velocity=g,e.velocityX=i,e.velocityY=n,e.direction=A}(g,e);var l,c=t.element,u=e.srcEvent;hh(l=u.composedPath?u.composedPath()[0]:u.path?u.path[0]:u.target,c)&&(c=l),e.target=c}function xh(t,e,g){var i=g.pointers.length,n=g.changedPointers.length,A=e&$d&&i-n==0,o=e&(th|eh)&&i-n==0;g.isFirst=!!A,g.isFinal=!!o,A&&(t.session={}),g.eventType=e,wh(t,g),t.emit("hammer.input",g),t.recognize(g),t.session.prevInput=g}function kh(t){return t.trim().split(/\s+/g)}function Eh(t,e,g){lh(kh(e),(function(e){t.addEventListener(e,g,!1)}))}function Oh(t,e,g){lh(kh(e),(function(e){t.removeEventListener(e,g,!1)}))}function Th(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Dh=function(){function t(t,e){var g=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){ch(t.options.enable,[t])&&g.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Eh(this.element,this.evEl,this.domHandler),this.evTarget&&Eh(this.target,this.evTarget,this.domHandler),this.evWin&&Eh(Th(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Oh(this.element,this.evEl,this.domHandler),this.evTarget&&Oh(this.target,this.evTarget,this.domHandler),this.evWin&&Oh(Th(this.element),this.evWin,this.domHandler)},t}();function Rh(t,e,g){if(t.indexOf&&!g)return t.indexOf(e);for(var i=0;i<t.length;){if(g&&t[i][g]==e||!g&&t[i]===e)return i;i++}return-1}var Sh={pointerdown:$d,pointermove:2,pointerup:th,pointercancel:eh,pointerout:eh},Nh={2:Xd,3:"pen",4:Jd,5:"kinect"},Ph="pointerdown",Mh="pointermove pointerup pointercancel";Rd.MSPointerEvent&&!Rd.PointerEvent&&(Ph="MSPointerDown",Mh="MSPointerMove MSPointerUp MSPointerCancel");var Bh=function(t){function e(){var g,i=e.prototype;return i.evEl=Ph,i.evWin=Mh,(g=t.apply(this,arguments)||this).store=g.manager.session.pointerEvents=[],g}return Td(e,t),e.prototype.handler=function(t){var e=this.store,g=!1,i=t.type.toLowerCase().replace("ms",""),n=Sh[i],A=Nh[t.pointerType]||t.pointerType,o=A===Xd,C=Rh(e,t.pointerId,"pointerId");n&$d&&(0===t.button||o)?C<0&&(e.push(t),C=e.length-1):n&(th|eh)&&(g=!0),C<0||(e[C]=t,this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:A,srcEvent:t}),g&&e.splice(C,1))},e}(Dh);function _h(t){return Array.prototype.slice.call(t,0)}function zh(t,e,g){for(var i=[],n=[],A=0;A<t.length;){var o=e?t[A][e]:t[A];Rh(n,o)<0&&i.push(t[A]),n[A]=o,A++}return g&&(i=e?i.sort((function(t,g){return t[e]>g[e]})):i.sort()),i}var Fh={touchstart:$d,touchmove:2,touchend:th,touchcancel:eh},jh=function(t){function e(){var g;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(g=t.apply(this,arguments)||this).targetIds={},g}return Td(e,t),e.prototype.handler=function(t){var e=Fh[t.type],g=Lh.call(this,t,e);g&&this.callback(this.manager,e,{pointers:g[0],changedPointers:g[1],pointerType:Xd,srcEvent:t})},e}(Dh);function Lh(t,e){var g,i,n=_h(t.touches),A=this.targetIds;if(e&(2|$d)&&1===n.length)return A[n[0].identifier]=!0,[n,n];var o=_h(t.changedTouches),C=[],I=this.target;if(i=n.filter((function(t){return hh(t.target,I)})),e===$d)for(g=0;g<i.length;)A[i[g].identifier]=!0,g++;for(g=0;g<o.length;)A[o[g].identifier]&&C.push(o[g]),e&(th|eh)&&delete A[o[g].identifier],g++;return C.length?[zh(i.concat(C),"identifier",!0),C]:void 0}var Zh={mousedown:$d,mousemove:2,mouseup:th},Gh=function(t){function e(){var g,i=e.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(g=t.apply(this,arguments)||this).pressed=!1,g}return Td(e,t),e.prototype.handler=function(t){var e=Zh[t.type];e&$d&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=th),this.pressed&&(e&th&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Jd,srcEvent:t}))},e}(Dh),Vh=2500;function Yh(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var g={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(g);setTimeout((function(){var t=i.indexOf(g);t>-1&&i.splice(t,1)}),Vh)}}function Wh(t,e){t&$d?(this.primaryTouch=e.changedPointers[0].identifier,Yh.call(this,e)):t&(th|eh)&&Yh.call(this,e)}function Uh(t){for(var e=t.srcEvent.clientX,g=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],A=Math.abs(e-n.x),o=Math.abs(g-n.y);if(A<=25&&o<=25)return!0}return!1}var Hh=function(){return function(t){function e(e,g){var i;return(i=t.call(this,e,g)||this).handler=function(t,e,g){var n=g.pointerType===Xd,A=g.pointerType===Jd;if(!(A&&g.sourceCapabilities&&g.sourceCapabilities.firesTouchEvents)){if(n)Wh.call(Dd(Dd(i)),e,g);else if(A&&Uh.call(Dd(Dd(i)),g))return;i.callback(t,e,g)}},i.touch=new jh(i.manager,i.handler),i.mouse=new Gh(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return Td(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Dh)}();function Qh(t,e,g){return!!Array.isArray(t)&&(lh(t,g[e],g),!0)}var Kh=32,Xh=1;function Jh(t,e){var g=e.manager;return g?g.get(t):t}function qh(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var $h=function(){function t(t){void 0===t&&(t={}),this.options=Od({enable:!0},t),this.id=Xh++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return Sd(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Qh(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Jh(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Qh(t,"dropRecognizeWith",this)||(t=Jh(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Qh(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Rh(e,t=Jh(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Qh(t,"dropRequireFailure",this))return this;t=Jh(t,this);var e=Rh(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,g=this.state;function i(g){e.manager.emit(g,t)}g<8&&i(e.options.event+qh(g)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),g>=8&&i(e.options.event+qh(g))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Kh},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=Sd({},t);if(!ch(this.options.enable,[this,e]))return this.reset(),void(this.state=Kh);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),tf=function(t){function e(e){var g;return void 0===e&&(e={}),(g=t.call(this,Od({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,g.pCenter=!1,g._timer=null,g._input=null,g.count=0,g}Td(e,t);var g=e.prototype;return g.getTouchAction=function(){return[Gd]},g.process=function(t){var e=this,g=this.options,i=t.pointers.length===g.pointers,n=t.distance<g.threshold,A=t.deltaTime<g.time;if(this.reset(),t.eventType&$d&&0===this.count)return this.failTimeout();if(n&&A&&i){if(t.eventType!==th)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<g.interval,C=!this.pCenter||vh(this.pCenter,t.center)<g.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,C&&o?this.count+=1:this.count=1,this._input=t,0==this.count%g.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),g.interval),2):8}return Kh},g.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=Kh}),this.options.interval),Kh},g.reset=function(){clearTimeout(this._timer)},g.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}($h),ef=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Od({pointers:1},e))||this}Td(e,t);var g=e.prototype;return g.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},g.process=function(t){var e=this.state,g=t.eventType,i=6&e,n=this.attrTest(t);return i&&(g&eh||!n)?16|e:i||n?g&th?8|e:2&e?4|e:2:Kh},e}($h);function gf(t){return t===oh?"down":t===Ah?"up":t===ih?"left":t===nh?"right":""}var nf=function(t){function e(e){var g;return void 0===e&&(e={}),(g=t.call(this,Od({event:"pan",threshold:10,pointers:1,direction:rh},e))||this).pX=null,g.pY=null,g}Td(e,t);var g=e.prototype;return g.getTouchAction=function(){var t=this.options.direction,e=[];return t&Ch&&e.push(Wd),t&Ih&&e.push(Yd),e},g.directionTest=function(t){var e=this.options,g=!0,i=t.distance,n=t.direction,A=t.deltaX,o=t.deltaY;return n&e.direction||(e.direction&Ch?(n=0===A?gh:A<0?ih:nh,g=A!==this.pX,i=Math.abs(t.deltaX)):(n=0===o?gh:o<0?Ah:oh,g=o!==this.pY,i=Math.abs(t.deltaY))),t.direction=n,g&&i>e.threshold&&n&e.direction},g.attrTest=function(t){return ef.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},g.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var g=gf(e.direction);g&&(e.additionalEvent=this.options.event+g),t.prototype.emit.call(this,e)},e}(ef),Af=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Od({event:"swipe",threshold:10,velocity:.3,direction:Ch|Ih,pointers:1},e))||this}Td(e,t);var g=e.prototype;return g.getTouchAction=function(){return nf.prototype.getTouchAction.call(this)},g.attrTest=function(e){var g,i=this.options.direction;return i&(Ch|Ih)?g=e.overallVelocity:i&Ch?g=e.overallVelocityX:i&Ih&&(g=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Bd(g)>this.options.velocity&&e.eventType&th},g.emit=function(t){var e=gf(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(ef),of=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Od({event:"pinch",threshold:0,pointers:2},e))||this}Td(e,t);var g=e.prototype;return g.getTouchAction=function(){return[Vd]},g.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},g.emit=function(e){if(1!==e.scale){var g=e.scale<1?"in":"out";e.additionalEvent=this.options.event+g}t.prototype.emit.call(this,e)},e}(ef),Cf=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Od({event:"rotate",threshold:0,pointers:2},e))||this}Td(e,t);var g=e.prototype;return g.getTouchAction=function(){return[Vd]},g.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(ef),If=function(t){function e(e){var g;return void 0===e&&(e={}),(g=t.call(this,Od({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,g._input=null,g}Td(e,t);var g=e.prototype;return g.getTouchAction=function(){return[Zd]},g.process=function(t){var e=this,g=this.options,i=t.pointers.length===g.pointers,n=t.distance<g.threshold,A=t.deltaTime>g.time;if(this._input=t,!n||!i||t.eventType&(th|eh)&&!A)this.reset();else if(t.eventType&$d)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),g.time);else if(t.eventType&th)return 8;return Kh},g.reset=function(){clearTimeout(this._timer)},g.emit=function(t){8===this.state&&(t&&t.eventType&th?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=_d(),this.manager.emit(this.options.event,this._input)))},e}($h),rf={domEvents:!1,touchAction:Ld,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sf=[[Cf,{enable:!1}],[of,{enable:!1},["rotate"]],[Af,{direction:Ch}],[nf,{direction:Ch},["swipe"]],[tf],[tf,{event:"doubletap",taps:2},["tap"]],[If]];function af(t,e){var g,i=t.element;i.style&&(lh(t.options.cssProps,(function(n,A){g=zd(i.style,A),e?(t.oldCssProps[g]=i.style[g],i.style[g]=n):i.style[g]=t.oldCssProps[g]||""})),e||(t.oldCssProps={}))}var lf=function(){function t(t,e){var g,i=this;this.options=Sd({},rf,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((g=this).options.inputClass||(Qd?Bh:Kd?jh:Hd?Hh:Gh))(g,xh),this.touchAction=new dh(this,this.options.touchAction),af(this,!0),lh(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return Sd(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var g;this.touchAction.preventDefaults(t);var i=this.recognizers,n=e.curRecognizer;(!n||n&&8&n.state)&&(e.curRecognizer=null,n=null);for(var A=0;A<i.length;)g=i[A],2===e.stopped||n&&g!==n&&!g.canRecognizeWith(n)?g.reset():g.recognize(t),!n&&14&g.state&&(e.curRecognizer=g,n=g),A++}},e.get=function(t){if(t instanceof $h)return t;for(var e=this.recognizers,g=0;g<e.length;g++)if(e[g].options.event===t)return e[g];return null},e.add=function(t){if(Qh(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Qh(t,"remove",this))return this;var e=this.get(t);if(t){var g=this.recognizers,i=Rh(g,e);-1!==i&&(g.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var g=this.handlers;return lh(kh(t),(function(t){g[t]=g[t]||[],g[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var g=this.handlers;return lh(kh(t),(function(t){e?g[t]&&g[t].splice(Rh(g[t],e),1):delete g[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var g=document.createEvent("Event");g.initEvent(t,!0,!0),g.gesture=e,e.target.dispatchEvent(g)}(t,e);var g=this.handlers[t]&&this.handlers[t].slice();if(g&&g.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<g.length;)g[i](e),i++}},e.destroy=function(){this.element&&af(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),cf={touchstart:$d,touchmove:2,touchend:th,touchcancel:eh},uf=function(t){function e(){var g,i=e.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(g=t.apply(this,arguments)||this).started=!1,g}return Td(e,t),e.prototype.handler=function(t){var e=cf[t.type];if(e===$d&&(this.started=!0),this.started){var g=df.call(this,t,e);e&(th|eh)&&g[0].length-g[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:g[0],changedPointers:g[1],pointerType:Xd,srcEvent:t})}},e}(Dh);function df(t,e){var g=_h(t.touches),i=_h(t.changedTouches);return e&(th|eh)&&(g=zh(g.concat(i),"identifier",!0)),[g,i]}function hf(t,e,g){var i="DEPRECATED METHOD: "+e+"\n"+g+" AT \n";return function(){var e=new Error("get-stack-trace"),g=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=window.console&&(window.console.warn||window.console.log);return n&&n.call(window.console,i,g),t.apply(this,arguments)}}var ff=hf((function(t,e,g){for(var i=Object.keys(e),n=0;n<i.length;)(!g||g&&void 0===t[i[n]])&&(t[i[n]]=e[i[n]]),n++;return t}),"extend","Use `assign`."),pf=hf((function(t,e){return ff(t,e,!0)}),"merge","Use `assign`.");function vf(t,e,g){var i,n=e.prototype;(i=t.prototype=Object.create(n)).constructor=t,i._super=n,g&&Sd(i,g)}function yf(t,e){return function(){return t.apply(e,arguments)}}var mf=function(){var t=function(t,e){return void 0===e&&(e={}),new lf(t,Od({recognizers:sf.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=rh,t.DIRECTION_DOWN=oh,t.DIRECTION_LEFT=ih,t.DIRECTION_RIGHT=nh,t.DIRECTION_UP=Ah,t.DIRECTION_HORIZONTAL=Ch,t.DIRECTION_VERTICAL=Ih,t.DIRECTION_NONE=gh,t.DIRECTION_DOWN=oh,t.INPUT_START=$d,t.INPUT_MOVE=2,t.INPUT_END=th,t.INPUT_CANCEL=eh,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=Kh,t.Manager=lf,t.Input=Dh,t.TouchAction=dh,t.TouchInput=jh,t.MouseInput=Gh,t.PointerEventInput=Bh,t.TouchMouseInput=Hh,t.SingleTouchInput=uf,t.Recognizer=$h,t.AttrRecognizer=ef,t.Tap=tf,t.Pan=nf,t.Swipe=Af,t.Pinch=of,t.Rotate=Cf,t.Press=If,t.on=Eh,t.off=Oh,t.each=lh,t.merge=pf,t.extend=ff,t.bindFn=yf,t.assign=Sd,t.inherit=vf,t.bindFn=yf,t.prefixed=zd,t.toArray=_h,t.inArray=Rh,t.uniqueArray=zh,t.splitStr=kh,t.boolOrFn=ch,t.hasParent=hh,t.addEventListeners=Eh,t.removeEventListeners=Oh,t.defaults=Sd({},rf,{preset:sf}),t}();function bf(t,e){var g=void 0!==Ec&&_l(t)||t["@@iterator"];if(!g){if(Lc(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return wf(t,e);var i=Nc(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Pl(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?wf(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function wf(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}var xf=Ec("DELETE");function kf(){var t=Ef.apply(void 0,arguments);return Tf(t),t}function Ef(){for(var t=arguments.length,e=new Array(t),g=0;g<t;g++)e[g]=arguments[g];if(e.length<2)return e[0];var i;if(e.length>2)return Ef.apply(void 0,Sc(i=[kf(e[0],e[1])]).call(i,kc(Nc(e).call(e,2))));var n=e[0],A=e[1];if(n instanceof Date&&A instanceof Date)return n.setTime(A.getTime()),n;var o,C=bf(jc(A));try{for(C.s();!(o=C.n()).done;){var I=o.value;Object.prototype.propertyIsEnumerable.call(A,I)&&(A[I]===xf?delete n[I]:null===n[I]||null===A[I]||"object"!=typeof n[I]||"object"!=typeof A[I]||Lc(n[I])||Lc(A[I])?n[I]=Of(A[I]):n[I]=Ef(n[I],A[I]))}}catch(t){C.e(t)}finally{C.f()}return n}function Of(t){return Lc(t)?Ta(t).call(t,(function(t){return Of(t)})):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):Ef({},t):t}function Tf(t){for(var e=0,g=Vc(t);e<g.length;e++){var i=g[e];t[i]===xf?delete t[i]:"object"==typeof t[i]&&null!==t[i]&&Tf(t[i])}}var Df="undefined"!=typeof window?window.Hammer||mf:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function Rf(t){var e,g=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){g._dom.overlay.parentNode.removeChild(g._dom.overlay)}));var i=Df(this._dom.overlay);i.on("tap",ta(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];tu(n).call(n,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||g.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",g._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&g.deactivate()}}Ed(Rf.prototype),Rf.current=null,Rf.prototype.destroy=function(){var t,e;this.deactivate();var g,i=bf(su(t=Su(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(g=i.n()).done;)(0,g.value)()}catch(t){i.e(t)}finally{i.f()}},Rf.prototype.activate=function(){Rf.current&&Rf.current.deactivate(),Rf.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Rf.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Rf.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Sf=ki,Nf=Rt,Pf=TypeError,Mf=function(t){if(Sf(t))return t;throw new Pf(Nf(t)+" is not a constructor")},Bf=Dg,_f=u,zf=Ys,Ff=Mf,jf=ig,Lf=it,Zf=Wn,Gf=I,Vf=rt("Reflect","construct"),Yf=Object.prototype,Wf=[].push,Uf=Gf((function(){function t(){}return!(Vf((function(){}),[],t)instanceof t)})),Hf=!Gf((function(){Vf((function(){}))})),Qf=Uf||Hf;Bf({target:"Reflect",stat:!0,forced:Qf,sham:Qf},{construct:function(t,e){Ff(t),jf(e);var g=arguments.length<3?t:Ff(arguments[2]);if(Hf&&!Uf)return Vf(t,e,g);if(t===g){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return _f(Wf,i,e),new(_f(zf,t,i))}var n=g.prototype,A=Zf(Lf(n)?n:Yf),o=_f(t,A,e);return Lf(o)?o:A}});var Kf=n(nt.Reflect.construct),Xf=n(nt.Object.getOwnPropertySymbols),Jf={exports:{}},qf=Dg,$f=I,tp=tt,ep=S.f,gp=N;qf({target:"Object",stat:!0,forced:!gp||$f((function(){ep(1)})),sham:!gp},{getOwnPropertyDescriptor:function(t,e){return ep(tp(t),e)}});var ip=nt.Object,np=Jf.exports=function(t,e){return ip.getOwnPropertyDescriptor(t,e)};ip.getOwnPropertyDescriptor.sham&&(np.sham=!0);var Ap=n(Jf.exports),op=Fc,Cp=tt,Ip=S,rp=qg;Dg({target:"Object",stat:!0,sham:!N},{getOwnPropertyDescriptors:function(t){for(var e,g,i=Cp(t),n=Ip.f,A=op(i),o={},C=0;A.length>C;)void 0!==(g=n(i,e=A[C++]))&&rp(o,e,g);return o}});var sp=n(nt.Object.getOwnPropertyDescriptors),ap={exports:{}},lp=Dg,cp=N,up=$i.f;lp({target:"Object",stat:!0,forced:Object.defineProperties!==up,sham:!cp},{defineProperties:up});var dp=nt.Object,hp=ap.exports=function(t,e){return dp.defineProperties(t,e)};dp.defineProperties.sham&&(hp.sham=!0);var fp=n(ap.exports),pp=n(Bg);function vp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var yp=qu,mp=n(yp);Dg({target:"Object",stat:!0},{setPrototypeOf:tr});var bp=nt.Object.setPrototypeOf,wp=n(bp),xp=n($s);function kp(t,e){var g;return kp=wp?xp(g=wp).call(g):function(t,e){return t.__proto__=e,t},kp(t,e)}function Ep(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=mp(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),zg(t,"prototype",{writable:!1}),e&&kp(t,e)}function Op(t,e){if(e&&("object"===Ts(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return vp(t)}var Tp=Xu,Dp=n(Tp);function Rp(t){var e;return Rp=wp?xp(e=Dp).call(e):function(t){return t.__proto__||Dp(t)},Rp(t)}var Sp={exports:{}},Np={exports:{}};!function(t){var e=Cs,g=Es;function i(n){return t.exports=i="function"==typeof e&&"symbol"==typeof g?function(t){return typeof t}:function(t){return t&&"function"==typeof e&&t.constructor===e&&t!==e.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,i(n)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}(Np);var Pp=Np.exports,Mp=$c,Bp=te,_p=Fc,zp=S,Fp=qe,jp=it,Lp=fg,Zp=Error,Gp=v("".replace),Vp=String(new Zp("zxcasd").stack),Yp=/\n\s*at [^:]*:[^\n]*/,Wp=Yp.test(Vp),Up=G,Hp=!I((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Up(1,7)),7!==t.stack)})),Qp=fg,Kp=function(t,e){if(Wp&&"string"==typeof t&&!Zp.prepareStackTrace)for(;e--;)t=Gp(t,Yp,"");return t},Xp=Hp,Jp=Error.captureStackTrace,qp=Je,$p=B,tv=ig,ev=Rt,gv=el,iv=Ug,nv=st,Av=ul,ov=Cl,Cv=Ka,Iv=TypeError,rv=function(t,e){this.stopped=t,this.result=e},sv=rv.prototype,av=function(t,e,g){var i,n,A,o,C,I,r,s=g&&g.that,a=!(!g||!g.AS_ENTRIES),l=!(!g||!g.IS_RECORD),c=!(!g||!g.IS_ITERATOR),u=!(!g||!g.INTERRUPTED),d=qp(e,s),h=function(t){return i&&Cv(i,"normal",t),new rv(!0,t)},f=function(t){return a?(tv(t),u?d(t[0],t[1],h):d(t[0],t[1])):u?d(t,h):d(t)};if(l)i=t.iterator;else if(c)i=t;else{if(!(n=ov(t)))throw new Iv(ev(t)+" is not iterable");if(gv(n)){for(A=0,o=iv(t);o>A;A++)if((C=f(t[A]))&&nv(sv,C))return C;return new rv(!1)}i=Av(t,n)}for(I=l?t.next:i.next;!(r=$p(I,i)).done;){try{C=f(r.value)}catch(t){Cv(i,"throw",t)}if("object"==typeof C&&C&&nv(sv,C))return C}return new rv(!1)},lv=qi,cv=Dg,uv=st,dv=NI,hv=tr,fv=function(t,e,g){for(var i=_p(e),n=Fp.f,A=zp.f,o=0;o<i.length;o++){var C=i[o];Bp(t,C)||g&&Bp(g,C)||n(t,C,A(e,C))}},pv=Wn,vv=fg,yv=G,mv=function(t,e){jp(e)&&"cause"in e&&Lp(t,"cause",e.cause)},bv=function(t,e,g,i){Xp&&(Jp?Jp(t,e):Qp(t,"stack",Kp(g,i)))},wv=av,xv=function(t,e){return void 0===t?arguments.length<2?"":e:lv(t)},kv=ue("toStringTag"),Ev=Error,Ov=[].push,Tv=function(t,e){var g,i=uv(Dv,this);hv?g=hv(new Ev,i?dv(this):Dv):(g=i?this:pv(Dv),vv(g,kv,"Error")),void 0!==e&&vv(g,"message",xv(e)),bv(g,Tv,g.stack,1),arguments.length>2&&mv(g,arguments[2]);var n=[];return wv(t,Ov,{that:n}),vv(g,"errors",n),g};hv?hv(Tv,Ev):fv(Tv,Ev,{name:!0});var Dv=Tv.prototype=pv(Ev.prototype,{constructor:yv(1,Tv),message:yv(1,""),name:yv(1,"AggregateError")});cv({global:!0,constructor:!0,arity:2},{AggregateError:Tv});var Rv,Sv,Nv,Pv,Mv=rt,Bv=aA,_v=N,zv=ue("species"),Fv=function(t){var e=Mv(t);_v&&e&&!e[zv]&&Bv(e,zv,{configurable:!0,get:function(){return this}})},jv=st,Lv=TypeError,Zv=function(t,e){if(jv(e,t))return t;throw new Lv("Incorrect invocation")},Gv=ig,Vv=Mf,Yv=Q,Wv=ue("species"),Uv=function(t,e){var g,i=Gv(t).constructor;return void 0===i||Yv(g=Gv(i)[Wv])?e:Vv(g)},Hv=/(?:ipad|iphone|ipod).*applewebkit/i.test(at),Qv=C,Kv=u,Xv=Je,Jv=R,qv=te,$v=I,ty=Tn,ey=NC,gy=Oe,iy=od,ny=Hv,Ay=sa,oy=Qv.setImmediate,Cy=Qv.clearImmediate,Iy=Qv.process,ry=Qv.Dispatch,sy=Qv.Function,ay=Qv.MessageChannel,ly=Qv.String,cy=0,uy={},dy="onreadystatechange";$v((function(){Rv=Qv.location}));var hy=function(t){if(qv(uy,t)){var e=uy[t];delete uy[t],e()}},fy=function(t){return function(){hy(t)}},py=function(t){hy(t.data)},vy=function(t){Qv.postMessage(ly(t),Rv.protocol+"//"+Rv.host)};oy&&Cy||(oy=function(t){iy(arguments.length,1);var e=Jv(t)?t:sy(t),g=ey(arguments,1);return uy[++cy]=function(){Kv(e,void 0,g)},Sv(cy),cy},Cy=function(t){delete uy[t]},Ay?Sv=function(t){Iy.nextTick(fy(t))}:ry&&ry.now?Sv=function(t){ry.now(fy(t))}:ay&&!ny?(Pv=(Nv=new ay).port2,Nv.port1.onmessage=py,Sv=Xv(Pv.postMessage,Pv)):Qv.addEventListener&&Jv(Qv.postMessage)&&!Qv.importScripts&&Rv&&"file:"!==Rv.protocol&&!$v(vy)?(Sv=vy,Qv.addEventListener("message",py,!1)):Sv=dy in gy("script")?function(t){ty.appendChild(gy("script"))[dy]=function(){ty.removeChild(this),hy(t)}}:function(t){setTimeout(fy(t),0)});var yy={set:oy,clear:Cy},my=function(){this.head=null,this.tail=null};my.prototype={add:function(t){var e={item:t,next:null},g=this.tail;g?g.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var by,wy,xy,ky,Ey,Oy=my,Ty=/ipad|iphone|ipod/i.test(at)&&"undefined"!=typeof Pebble,Dy=/web0s(?!.*chrome)/i.test(at),Ry=C,Sy=Je,Ny=S.f,Py=yy.set,My=Oy,By=Hv,_y=Ty,zy=Dy,Fy=sa,jy=Ry.MutationObserver||Ry.WebKitMutationObserver,Ly=Ry.document,Zy=Ry.process,Gy=Ry.Promise,Vy=Ny(Ry,"queueMicrotask"),Yy=Vy&&Vy.value;if(!Yy){var Wy=new My,Uy=function(){var t,e;for(Fy&&(t=Zy.domain)&&t.exit();e=Wy.get();)try{e()}catch(t){throw Wy.head&&by(),t}t&&t.enter()};By||Fy||zy||!jy||!Ly?!_y&&Gy&&Gy.resolve?((ky=Gy.resolve(void 0)).constructor=Gy,Ey=Sy(ky.then,ky),by=function(){Ey(Uy)}):Fy?by=function(){Zy.nextTick(Uy)}:(Py=Sy(Py,Ry),by=function(){Py(Uy)}):(wy=!0,xy=Ly.createTextNode(""),new jy(Uy).observe(xy,{characterData:!0}),by=function(){xy.data=wy=!wy}),Yy=function(t){Wy.head||by(),Wy.add(t)}}var Hy=Yy,Qy=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ky=C.Promise,Xy="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Jy=!Xy&&!sa&&"object"==typeof window&&"object"==typeof document,qy=C,$y=Ky,tm=R,em=He,gm=ai,im=ue,nm=Jy,Am=Xy,om=pt,Cm=$y&&$y.prototype,Im=im("species"),rm=!1,sm=tm(qy.PromiseRejectionEvent),am={CONSTRUCTOR:em("Promise",(function(){var t=gm($y),e=t!==String($y);if(!e&&66===om)return!0;if(!Cm.catch||!Cm.finally)return!0;if(!om||om<51||!/native code/.test(t)){var g=new $y((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((g.constructor={})[Im]=i,!(rm=g.then((function(){}))instanceof i))return!0}return!e&&(nm||Am)&&!sm})),REJECTION_EVENT:sm,SUBCLASSING:rm},lm={},cm=Mt,um=TypeError,dm=function(t){var e,g;this.promise=new t((function(t,i){if(void 0!==e||void 0!==g)throw new um("Bad Promise constructor");e=t,g=i})),this.resolve=cm(e),this.reject=cm(g)};lm.f=function(t){return new dm(t)};var hm,fm,pm=Dg,vm=sa,ym=C,mm=B,bm=rA,wm=BA,xm=Fv,km=Mt,Em=R,Om=it,Tm=Zv,Dm=Uv,Rm=yy.set,Sm=Hy,Nm=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},Pm=Qy,Mm=Oy,Bm=JA,_m=Ky,zm=am,Fm=lm,jm="Promise",Lm=zm.CONSTRUCTOR,Zm=zm.REJECTION_EVENT,Gm=Bm.getterFor(jm),Vm=Bm.set,Ym=_m&&_m.prototype,Wm=_m,Um=Ym,Hm=ym.TypeError,Qm=ym.document,Km=ym.process,Xm=Fm.f,Jm=Xm,qm=!!(Qm&&Qm.createEvent&&ym.dispatchEvent),$m="unhandledrejection",tb=function(t){var e;return!(!Om(t)||!Em(e=t.then))&&e},eb=function(t,e){var g,i,n,A=e.value,o=1===e.state,C=o?t.ok:t.fail,I=t.resolve,r=t.reject,s=t.domain;try{C?(o||(2===e.rejection&&ob(e),e.rejection=1),!0===C?g=A:(s&&s.enter(),g=C(A),s&&(s.exit(),n=!0)),g===t.promise?r(new Hm("Promise-chain cycle")):(i=tb(g))?mm(i,g,I,r):I(g)):r(A)}catch(t){s&&!n&&s.exit(),r(t)}},gb=function(t,e){t.notified||(t.notified=!0,Sm((function(){for(var g,i=t.reactions;g=i.get();)eb(g,t);t.notified=!1,e&&!t.rejection&&nb(t)})))},ib=function(t,e,g){var i,n;qm?((i=Qm.createEvent("Event")).promise=e,i.reason=g,i.initEvent(t,!1,!0),ym.dispatchEvent(i)):i={promise:e,reason:g},!Zm&&(n=ym["on"+t])?n(i):t===$m&&Nm("Unhandled promise rejection",g)},nb=function(t){mm(Rm,ym,(function(){var e,g=t.facade,i=t.value;if(Ab(t)&&(e=Pm((function(){vm?Km.emit("unhandledRejection",i,g):ib($m,g,i)})),t.rejection=vm||Ab(t)?2:1,e.error))throw e.value}))},Ab=function(t){return 1!==t.rejection&&!t.parent},ob=function(t){mm(Rm,ym,(function(){var e=t.facade;vm?Km.emit("rejectionHandled",e):ib("rejectionhandled",e,t.value)}))},Cb=function(t,e,g){return function(i){t(e,i,g)}},Ib=function(t,e,g){t.done||(t.done=!0,g&&(t=g),t.value=e,t.state=2,gb(t,!0))},rb=function(t,e,g){if(!t.done){t.done=!0,g&&(t=g);try{if(t.facade===e)throw new Hm("Promise can't be resolved itself");var i=tb(e);i?Sm((function(){var g={done:!1};try{mm(i,e,Cb(rb,g,t),Cb(Ib,g,t))}catch(e){Ib(g,e,t)}})):(t.value=e,t.state=1,gb(t,!1))}catch(e){Ib({done:!1},e,t)}}};Lm&&(Um=(Wm=function(t){Tm(this,Um),km(t),mm(hm,this);var e=Gm(this);try{t(Cb(rb,e),Cb(Ib,e))}catch(t){Ib(e,t)}}).prototype,(hm=function(t){Vm(this,{type:jm,done:!1,notified:!1,parent:!1,reactions:new Mm,rejection:!1,state:0,value:void 0})}).prototype=bm(Um,"then",(function(t,e){var g=Gm(this),i=Xm(Dm(this,Wm));return g.parent=!0,i.ok=!Em(t)||t,i.fail=Em(e)&&e,i.domain=vm?Km.domain:void 0,0===g.state?g.reactions.add(i):Sm((function(){eb(i,g)})),i.promise})),fm=function(){var t=new hm,e=Gm(t);this.promise=t,this.resolve=Cb(rb,e),this.reject=Cb(Ib,e)},Fm.f=Xm=function(t){return t===Wm||undefined===t?new fm(t):Jm(t)}),pm({global:!0,constructor:!0,wrap:!0,forced:Lm},{Promise:Wm}),wm(Wm,jm,!1,!0),xm(jm);var sb=Ky,ab=am.CONSTRUCTOR||!Rl((function(t){sb.all(t).then(void 0,(function(){}))})),lb=B,cb=Mt,ub=lm,db=Qy,hb=av;Dg({target:"Promise",stat:!0,forced:ab},{all:function(t){var e=this,g=ub.f(e),i=g.resolve,n=g.reject,A=db((function(){var g=cb(e.resolve),A=[],o=0,C=1;hb(t,(function(t){var I=o++,r=!1;C++,lb(g,e,t).then((function(t){r||(r=!0,A[I]=t,--C||i(A))}),n)})),--C||i(A)}));return A.error&&n(A.value),g.promise}});var fb=Dg,pb=am.CONSTRUCTOR;Ky&&Ky.prototype,fb({target:"Promise",proto:!0,forced:pb,real:!0},{catch:function(t){return this.then(void 0,t)}});var vb=B,yb=Mt,mb=lm,bb=Qy,wb=av;Dg({target:"Promise",stat:!0,forced:ab},{race:function(t){var e=this,g=mb.f(e),i=g.reject,n=bb((function(){var n=yb(e.resolve);wb(t,(function(t){vb(n,e,t).then(g.resolve,i)}))}));return n.error&&i(n.value),g.promise}});var xb=B,kb=lm;Dg({target:"Promise",stat:!0,forced:am.CONSTRUCTOR},{reject:function(t){var e=kb.f(this);return xb(e.reject,void 0,t),e.promise}});var Eb=ig,Ob=it,Tb=lm,Db=function(t,e){if(Eb(t),Ob(e)&&e.constructor===t)return e;var g=Tb.f(t);return(0,g.resolve)(e),g.promise},Rb=Dg,Sb=Ky,Nb=am.CONSTRUCTOR,Pb=Db,Mb=rt("Promise"),Bb=!Nb;Rb({target:"Promise",stat:!0,forced:true},{resolve:function(t){return Pb(Bb&&this===Mb?Sb:this,t)}});var _b=B,zb=Mt,Fb=lm,jb=Qy,Lb=av;Dg({target:"Promise",stat:!0,forced:ab},{allSettled:function(t){var e=this,g=Fb.f(e),i=g.resolve,n=g.reject,A=jb((function(){var g=zb(e.resolve),n=[],A=0,o=1;Lb(t,(function(t){var C=A++,I=!1;o++,_b(g,e,t).then((function(t){I||(I=!0,n[C]={status:"fulfilled",value:t},--o||i(n))}),(function(t){I||(I=!0,n[C]={status:"rejected",reason:t},--o||i(n))}))})),--o||i(n)}));return A.error&&n(A.value),g.promise}});var Zb=B,Gb=Mt,Vb=rt,Yb=lm,Wb=Qy,Ub=av,Hb="No one promise resolved";Dg({target:"Promise",stat:!0,forced:ab},{any:function(t){var e=this,g=Vb("AggregateError"),i=Yb.f(e),n=i.resolve,A=i.reject,o=Wb((function(){var i=Gb(e.resolve),o=[],C=0,I=1,r=!1;Ub(t,(function(t){var s=C++,a=!1;I++,Zb(i,e,t).then((function(t){a||r||(r=!0,n(t))}),(function(t){a||r||(a=!0,o[s]=t,--I||A(new g(o,Hb)))}))})),--I||A(new g(o,Hb))}));return o.error&&A(o.value),i.promise}});var Qb=Dg,Kb=Ky,Xb=I,Jb=rt,qb=R,$b=Uv,tw=Db,ew=Kb&&Kb.prototype;Qb({target:"Promise",proto:!0,real:!0,forced:!!Kb&&Xb((function(){ew.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=$b(this,Jb("Promise")),g=qb(t);return this.then(g?function(g){return tw(e,t()).then((function(){return g}))}:t,g?function(g){return tw(e,t()).then((function(){throw g}))}:t)}});var gw=nt.Promise,iw=lm;Dg({target:"Promise",stat:!0},{withResolvers:function(){var t=iw.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var nw=gw,Aw=lm,ow=Qy;Dg({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=Aw.f(this),g=ow(t);return(g.error?e.reject:e.resolve)(g.value),e.promise}});var Cw=nw,Iw=ru;!function(t){var e=Pp.default,g=_g,i=Cs,n=yp,A=Tp,o=Mp,C=ql,I=bp,r=Cw,s=Iw,a=vc;function l(){t.exports=l=function(){return u},t.exports.__esModule=!0,t.exports.default=t.exports;var c,u={},d=Object.prototype,h=d.hasOwnProperty,f=g||function(t,e,g){t[e]=g.value},p="function"==typeof i?i:{},v=p.iterator||"@@iterator",y=p.asyncIterator||"@@asyncIterator",m=p.toStringTag||"@@toStringTag";function b(t,e,i){return g(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{b({},"")}catch(c){b=function(t,e,g){return t[e]=g}}function w(t,e,g,i){var A=e&&e.prototype instanceof R?e:R,o=n(A.prototype),C=new G(i||[]);return f(o,"_invoke",{value:F(t,g,C)}),o}function x(t,e,g){try{return{type:"normal",arg:t.call(e,g)}}catch(t){return{type:"throw",arg:t}}}u.wrap=w;var k="suspendedStart",E="suspendedYield",O="executing",T="completed",D={};function R(){}function S(){}function N(){}var P={};b(P,v,(function(){return this}));var M=A&&A(A(V([])));M&&M!==d&&h.call(M,v)&&(P=M);var B=N.prototype=R.prototype=n(P);function _(t){var e;o(e=["next","throw","return"]).call(e,(function(e){b(t,e,(function(t){return this._invoke(e,t)}))}))}function z(t,g){function i(n,A,o,C){var I=x(t[n],t,A);if("throw"!==I.type){var r=I.arg,s=r.value;return s&&"object"==e(s)&&h.call(s,"__await")?g.resolve(s.__await).then((function(t){i("next",t,o,C)}),(function(t){i("throw",t,o,C)})):g.resolve(s).then((function(t){r.value=t,o(r)}),(function(t){return i("throw",t,o,C)}))}C(I.arg)}var n;f(this,"_invoke",{value:function(t,e){function A(){return new g((function(g,n){i(t,e,g,n)}))}return n=n?n.then(A,A):A()}})}function F(t,e,g){var i=k;return function(n,A){if(i===O)throw new Error("Generator is already running");if(i===T){if("throw"===n)throw A;return{value:c,done:!0}}for(g.method=n,g.arg=A;;){var o=g.delegate;if(o){var C=j(o,g);if(C){if(C===D)continue;return C}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if(i===k)throw i=T,g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);i=O;var I=x(t,e,g);if("normal"===I.type){if(i=g.done?T:E,I.arg===D)continue;return{value:I.arg,done:g.done}}"throw"===I.type&&(i=T,g.method="throw",g.arg=I.arg)}}}function j(t,e){var g=e.method,i=t.iterator[g];if(i===c)return e.delegate=null,"throw"===g&&t.iterator.return&&(e.method="return",e.arg=c,j(t,e),"throw"===e.method)||"return"!==g&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+g+"' method")),D;var n=x(i,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,D;var A=n.arg;return A?A.done?(e[t.resultName]=A.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,D):A:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,D)}function L(t){var e,g={tryLoc:t[0]};1 in t&&(g.catchLoc=t[1]),2 in t&&(g.finallyLoc=t[2],g.afterLoc=t[3]),C(e=this.tryEntries).call(e,g)}function Z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],o(t).call(t,L,this),this.reset(!0)}function V(t){if(t||""===t){var g=t[v];if(g)return g.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i<t.length;)if(h.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=c,e.done=!0,e};return n.next=n}}throw new TypeError(e(t)+" is not iterable")}return S.prototype=N,f(B,"constructor",{value:N,configurable:!0}),f(N,"constructor",{value:S,configurable:!0}),S.displayName=b(N,m,"GeneratorFunction"),u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return I?I(t,N):(t.__proto__=N,b(t,m,"GeneratorFunction")),t.prototype=n(B),t},u.awrap=function(t){return{__await:t}},_(z.prototype),b(z.prototype,y,(function(){return this})),u.AsyncIterator=z,u.async=function(t,e,g,i,n){void 0===n&&(n=r);var A=new z(w(t,e,g,i),n);return u.isGeneratorFunction(e)?A:A.next().then((function(t){return t.done?t.value:A.next()}))},_(B),b(B,m,"Generator"),b(B,v,(function(){return this})),b(B,"toString",(function(){return"[object Generator]"})),u.keys=function(t){var e=Object(t),g=[];for(var i in e)C(g).call(g,i);return s(g).call(g),function t(){for(;g.length;){var i=g.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},u.values=V,G.prototype={constructor:G,reset:function(t){var e;if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,o(e=this.tryEntries).call(e,Z),!t)for(var g in this)"t"===g.charAt(0)&&h.call(this,g)&&!isNaN(+a(g).call(g,1))&&(this[g]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function g(g,i){return A.type="throw",A.arg=t,e.next=g,i&&(e.method="next",e.arg=c),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i],A=n.completion;if("root"===n.tryLoc)return g("end");if(n.tryLoc<=this.prev){var o=h.call(n,"catchLoc"),C=h.call(n,"finallyLoc");if(o&&C){if(this.prev<n.catchLoc)return g(n.catchLoc,!0);if(this.prev<n.finallyLoc)return g(n.finallyLoc)}else if(o){if(this.prev<n.catchLoc)return g(n.catchLoc,!0)}else{if(!C)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return g(n.finallyLoc)}}}},abrupt:function(t,e){for(var g=this.tryEntries.length-1;g>=0;--g){var i=this.tryEntries[g];if(i.tryLoc<=this.prev&&h.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var A=n?n.completion:{};return A.type=t,A.arg=e,n?(this.method="next",this.next=n.finallyLoc,D):this.complete(A)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),D},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var g=this.tryEntries[e];if(g.finallyLoc===t)return this.complete(g.completion,g.afterLoc),Z(g),D}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var g=this.tryEntries[e];if(g.tryLoc===t){var i=g.completion;if("throw"===i.type){var n=i.arg;Z(g)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,g){return this.delegate={iterator:V(t),resultName:e,nextLoc:g},"next"===this.method&&(this.arg=c),D}},u}t.exports=l,t.exports.__esModule=!0,t.exports.default=t.exports}(Sp);var rw=(0,Sp.exports)(),sw=rw;try{regeneratorRuntime=rw}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=rw:Function("r","regeneratorRuntime = r")(rw)}var aw=n(sw),lw={exports:{}},cw=I((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),uw=I,dw=it,hw=w,fw=cw,pw=Object.isExtensible,vw=uw((function(){pw(1)}))||fw?function(t){return!!dw(t)&&(!fw||"ArrayBuffer"!==hw(t))&&(!pw||pw(t))}:pw,yw=!I((function(){return Object.isExtensible(Object.preventExtensions({}))})),mw=Dg,bw=v,ww=sn,xw=it,kw=te,Ew=qe.f,Ow=Un,Tw=Kn,Dw=vw,Rw=yw,Sw=!1,Nw=Ae("meta"),Pw=0,Mw=function(t){Ew(t,Nw,{value:{objectID:"O"+Pw++,weakData:{}}})},Bw=lw.exports={enable:function(){Bw.enable=function(){},Sw=!0;var t=Ow.f,e=bw([].splice),g={};g[Nw]=1,t(g).length&&(Ow.f=function(g){for(var i=t(g),n=0,A=i.length;n<A;n++)if(i[n]===Nw){e(i,n,1);break}return i},mw({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Tw.f}))},fastKey:function(t,e){if(!xw(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!kw(t,Nw)){if(!Dw(t))return"F";if(!e)return"E";Mw(t)}return t[Nw].objectID},getWeakData:function(t,e){if(!kw(t,Nw)){if(!Dw(t))return!0;if(!e)return!1;Mw(t)}return t[Nw].weakData},onFreeze:function(t){return Rw&&Sw&&Dw(t)&&!kw(t,Nw)&&Mw(t),t}};ww[Nw]=!0;var _w=lw.exports,zw=Dg,Fw=C,jw=_w,Lw=I,Zw=fg,Gw=av,Vw=Zv,Yw=R,Ww=it,Uw=Q,Hw=BA,Qw=qe.f,Kw=Ao.forEach,Xw=N,Jw=JA.set,qw=JA.getterFor,$w=function(t,e,g){var i,n=-1!==t.indexOf("Map"),A=-1!==t.indexOf("Weak"),o=n?"set":"add",C=Fw[t],I=C&&C.prototype,r={};if(Xw&&Yw(C)&&(A||I.forEach&&!Lw((function(){(new C).entries().next()})))){var s=(i=e((function(e,g){Jw(Vw(e,s),{type:t,collection:new C}),Uw(g)||Gw(g,e[o],{that:e,AS_ENTRIES:n})}))).prototype,a=qw(t);Kw(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in I)||A&&"clear"===t||Zw(s,t,(function(g,i){var n=a(this).collection;if(!e&&A&&!Ww(g))return"get"===t&&void 0;var o=n[t](0===g?0:g,i);return e?this:o}))})),A||Qw(s,"size",{configurable:!0,get:function(){return a(this).collection.size}})}else i=g.getConstructor(e,t,n,o),jw.enable();return Hw(i,t,!1,!0),r[t]=i,zw({global:!0,forced:!0},r),A||g.setStrong(i,t,n),i},tx=rA,ex=Wn,gx=aA,ix=function(t,e,g){for(var i in e)g&&g.unsafe&&t[i]?t[i]=e[i]:tx(t,i,e[i],g);return t},nx=Je,Ax=Zv,ox=Q,Cx=av,Ix=fr,rx=pr,sx=Fv,ax=N,lx=_w.fastKey,cx=JA.set,ux=JA.getterFor,dx={getConstructor:function(t,e,g,i){var n=t((function(t,n){Ax(t,A),cx(t,{type:e,index:ex(null),first:void 0,last:void 0,size:0}),ax||(t.size=0),ox(n)||Cx(n,t[i],{that:t,AS_ENTRIES:g})})),A=n.prototype,o=ux(e),C=function(t,e,g){var i,n,A=o(t),C=I(t,e);return C?C.value=g:(A.last=C={index:n=lx(e,!0),key:e,value:g,previous:i=A.last,next:void 0,removed:!1},A.first||(A.first=C),i&&(i.next=C),ax?A.size++:t.size++,"F"!==n&&(A.index[n]=C)),t},I=function(t,e){var g,i=o(t),n=lx(e);if("F"!==n)return i.index[n];for(g=i.first;g;g=g.next)if(g.key===e)return g};return ix(A,{clear:function(){for(var t=o(this),e=t.index,g=t.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete e[g.index],g=g.next;t.first=t.last=void 0,ax?t.size=0:this.size=0},delete:function(t){var e=this,g=o(e),i=I(e,t);if(i){var n=i.next,A=i.previous;delete g.index[i.index],i.removed=!0,A&&(A.next=n),n&&(n.previous=A),g.first===i&&(g.first=n),g.last===i&&(g.last=A),ax?g.size--:e.size--}return!!i},forEach:function(t){for(var e,g=o(this),i=nx(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:g.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!I(this,t)}}),ix(A,g?{get:function(t){var e=I(this,t);return e&&e.value},set:function(t,e){return C(this,0===t?0:t,e)}}:{add:function(t){return C(this,t=0===t?0:t,t)}}),ax&&gx(A,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(t,e,g){var i=e+" Iterator",n=ux(e),A=ux(i);Ix(t,e,(function(t,e){cx(this,{type:i,target:t,state:n(t),kind:e,last:void 0})}),(function(){for(var t=A(this),e=t.kind,g=t.last;g&&g.removed;)g=g.previous;return t.target&&(t.last=g=g?g.next:t.state.first)?rx("keys"===e?g.key:"values"===e?g.value:[g.key,g.value],!1):(t.target=void 0,rx(void 0,!0))}),g?"entries":"values",!g,!0),sx(e)}};$w("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),dx);var hx=n(nt.Map),fx=Ao.some;Dg({target:"Array",proto:!0,forced:!ra("some")},{some:function(t){return fx(this,t,arguments.length>1?arguments[1]:void 0)}});var px=Qs("Array","some"),vx=st,yx=px,mx=Array.prototype,bx=n((function(t){var e=t.some;return t===mx||vx(mx,t)&&e===mx.some?yx:e})),wx=Qs("Array","keys"),xx=Ci,kx=te,Ex=st,Ox=wx,Tx=Array.prototype,Dx={DOMTokenList:!0,NodeList:!0},Rx=n((function(t){var e=t.keys;return t===Tx||Ex(Tx,t)&&e===Tx.keys||kx(Dx,xx(t))?Ox:e})),Sx=eA,Nx=Math.floor,Px=function(t,e){var g=t.length,i=Nx(g/2);return g<8?Mx(t,e):Bx(t,Px(Sx(t,0,i),e),Px(Sx(t,i),e),e)},Mx=function(t,e){for(var g,i,n=t.length,A=1;A<n;){for(i=A,g=t[A];i&&e(t[i-1],g)>0;)t[i]=t[--i];i!==A++&&(t[i]=g)}return t},Bx=function(t,e,g,i){for(var n=e.length,A=g.length,o=0,C=0;o<n||C<A;)t[o+C]=o<n&&C<A?i(e[o],g[C])<=0?e[o++]:g[C++]:o<n?e[o++]:g[C++];return t},_x=Px,zx=at.match(/firefox\/(\d+)/i),Fx=!!zx&&+zx[1],jx=/MSIE|Trident/.test(at),Lx=at.match(/AppleWebKit\/(\d+)\./),Zx=!!Lx&&+Lx[1],Gx=Dg,Vx=v,Yx=Mt,Wx=Jt,Ux=Ug,Hx=cu,Qx=qi,Kx=I,Xx=_x,Jx=ra,qx=Fx,$x=jx,tk=pt,ek=Zx,gk=[],ik=Vx(gk.sort),nk=Vx(gk.push),Ak=Kx((function(){gk.sort(void 0)})),ok=Kx((function(){gk.sort(null)})),Ck=Jx("sort"),Ik=!Kx((function(){if(tk)return tk<70;if(!(qx&&qx>3)){if($x)return!0;if(ek)return ek<603;var t,e,g,i,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:g=3;break;case 68:case 71:g=4;break;default:g=2}for(i=0;i<47;i++)gk.push({k:e+i,v:g})}for(gk.sort((function(t,e){return e.v-t.v})),i=0;i<gk.length;i++)e=gk[i].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}));Gx({target:"Array",proto:!0,forced:Ak||!ok||!Ck||!Ik},{sort:function(t){void 0!==t&&Yx(t);var e=Wx(this);if(Ik)return void 0===t?ik(e):ik(e,t);var g,i,n=[],A=Ux(e);for(i=0;i<A;i++)i in e&&nk(n,e[i]);for(Xx(n,function(t){return function(e,g){return void 0===g?-1:void 0===e?1:void 0!==t?+t(e,g)||0:Qx(e)>Qx(g)?1:-1}}(t)),g=Ux(n),i=0;i<g;)e[i]=n[i++];for(;i<A;)Hx(e,i++);return e}});var rk=Qs("Array","sort"),sk=st,ak=rk,lk=Array.prototype,ck=n((function(t){var e=t.sort;return t===lk||sk(lk,t)&&e===lk.sort?ak:e})),uk=Qs("Array","values"),dk=Ci,hk=te,fk=st,pk=uk,vk=Array.prototype,yk={DOMTokenList:!0,NodeList:!0},mk=n((function(t){var e=t.values;return t===vk||fk(vk,t)&&e===vk.values||hk(yk,dk(t))?pk:e})),bk=n(ks),wk=Qs("Array","entries"),xk=Ci,kk=te,Ek=st,Ok=wk,Tk=Array.prototype,Dk={DOMTokenList:!0,NodeList:!0},Rk=n((function(t){var e=t.entries;return t===Tk||Ek(Tk,t)&&e===Tk.entries||kk(Dk,xk(t))?Ok:e}));let Sk;const Nk=new Uint8Array(16);function Pk(){if(!Sk&&(Sk="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sk))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sk(Nk)}const Mk=[];for(let t=0;t<256;++t)Mk.push((t+256).toString(16).slice(1));var Bk={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _k(t,e,g){if(Bk.randomUUID&&!e&&!t)return Bk.randomUUID();const i=(t=t||{}).random||(t.rng||Pk)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){g=g||0;for(let t=0;t<16;++t)e[g+t]=i[t];return e}return function(t,e=0){return Mk[t[e+0]]+Mk[t[e+1]]+Mk[t[e+2]]+Mk[t[e+3]]+"-"+Mk[t[e+4]]+Mk[t[e+5]]+"-"+Mk[t[e+6]]+Mk[t[e+7]]+"-"+Mk[t[e+8]]+Mk[t[e+9]]+"-"+Mk[t[e+10]]+Mk[t[e+11]]+Mk[t[e+12]]+Mk[t[e+13]]+Mk[t[e+14]]+Mk[t[e+15]]}(i)}function zk(t){return"string"==typeof t||"number"==typeof t}var Fk=function(){function t(g){e(this,t),Ps(this,"_queue",[]),Ps(this,"_timeout",null),Ps(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(g)}return Ns(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,g=0;g<e.length;g++){var i=e[g];i.original?t[i.name]=i.original:delete t[i.name]}this._extended=null}}},{key:"replace",value:function(t,e){var g=this,i=t[e];if(!i)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];g.queue({args:e,fn:i,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=wd((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;tu(t=Su(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,g){var i=new t(g);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){i.flush()};var n=[{name:"flush",original:void 0}];if(g&&g.replace)for(var A=0;A<g.replace.length;A++){var o=g.replace[A];n.push({name:o,original:e[o]}),i.replace(e,o)}return i._extended={object:e,methods:n},i}}]),t}(),jk=function(){function t(){e(this,t),Ps(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Ps(this,"subscribe",t.prototype.on),Ps(this,"unsubscribe",t.prototype.off)}return Ns(t,[{key:"_trigger",value:function(t,e,g){var i,n;if("*"===t)throw new Error("Cannot trigger event *");tu(i=Sc(n=[]).call(n,kc(this._subscribers[t]),kc(this._subscribers["*"]))).call(i,(function(i){i(t,e,null!=g?g:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var g;this._subscribers[t]=ba(g=this._subscribers[t]).call(g,(function(t){return t!==e}))}}]),t}();$w("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),dx);var Lk=n(nt.Set),Zk=n(ul);function Gk(t,e){var g=void 0!==Ec&&_l(t)||t["@@iterator"];if(!g){if(Lc(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return Vk(t,e);var i=Nc(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Pl(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Vk(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function Vk(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}var Yk=function(t){function g(t){e(this,g),this._pairs=t}return Ns(g,[{key:t,value:aw.mark((function t(){var e,g,i,n,A;return aw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gk(this._pairs),t.prev=1,e.s();case 3:if((g=e.n()).done){t.next=9;break}return i=xc(g.value,2),n=i[0],A=i[1],t.next=7,[n,A];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:aw.mark((function t(){var e,g,i,n,A;return aw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gk(this._pairs),t.prev=1,e.s();case 3:if((g=e.n()).done){t.next=9;break}return i=xc(g.value,2),n=i[0],A=i[1],t.next=7,[n,A];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:aw.mark((function t(){var e,g,i,n;return aw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gk(this._pairs),t.prev=1,e.s();case 3:if((g=e.n()).done){t.next=9;break}return i=xc(g.value,1),n=i[0],t.next=7,n;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:aw.mark((function t(){var e,g,i,n;return aw.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Gk(this._pairs),t.prev=1,e.s();case 3:if((g=e.n()).done){t.next=9;break}return i=xc(g.value,2),n=i[1],t.next=7,n;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return Ta(t=kc(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return Ta(t=kc(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return kc(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=$u(null),g=Gk(this._pairs);try{for(g.s();!(t=g.n()).done;){var i=xc(t.value,2),n=i[0],A=i[1];e[n]=A}}catch(t){g.e(t)}finally{g.f()}return e}},{key:"toMap",value:function(){return new hx(this._pairs)}},{key:"toIdSet",value:function(){return new Lk(this.toIdArray())}},{key:"toItemSet",value:function(){return new Lk(this.toItemArray())}},{key:"cache",value:function(){return new g(kc(this._pairs))}},{key:"distinct",value:function(t){var e,g=new Lk,i=Gk(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=xc(e.value,2),A=n[0],o=n[1];g.add(t(o,A))}}catch(t){i.e(t)}finally{i.f()}return g}},{key:"filter",value:function(t){var e=this._pairs;return new g({[bk]:()=>aw.mark((function g(){var i,n,A,o,C;return aw.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:i=Gk(e),g.prev=1,i.s();case 3:if((n=i.n()).done){g.next=10;break}if(A=xc(n.value,2),o=A[0],C=A[1],!t(C,o)){g.next=8;break}return g.next=8,[o,C];case 8:g.next=3;break;case 10:g.next=15;break;case 12:g.prev=12,g.t0=g.catch(1),i.e(g.t0);case 15:return g.prev=15,i.f(),g.finish(15);case 18:case"end":return g.stop()}}),g,null,[[1,12,15,18]])}))()})}},{key:"forEach",value:function(t){var e,g=Gk(this._pairs);try{for(g.s();!(e=g.n()).done;){var i=xc(e.value,2),n=i[0];t(i[1],n)}}catch(t){g.e(t)}finally{g.f()}}},{key:"map",value:function(t){var e=this._pairs;return new g({[bk]:()=>aw.mark((function g(){var i,n,A,o,C;return aw.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:i=Gk(e),g.prev=1,i.s();case 3:if((n=i.n()).done){g.next=9;break}return A=xc(n.value,2),o=A[0],C=A[1],g.next=7,[o,t(C,o)];case 7:g.next=3;break;case 9:g.next=14;break;case 11:g.prev=11,g.t0=g.catch(1),i.e(g.t0);case 14:return g.prev=14,i.f(),g.finish(14);case 17:case"end":return g.stop()}}),g,null,[[1,11,14,17]])}))()})}},{key:"max",value:function(t){var e=Zk(this._pairs),g=e.next();if(g.done)return null;for(var i=g.value[1],n=t(g.value[1],g.value[0]);!(g=e.next()).done;){var A=xc(g.value,2),o=A[0],C=A[1],I=t(C,o);I>n&&(n=I,i=C)}return i}},{key:"min",value:function(t){var e=Zk(this._pairs),g=e.next();if(g.done)return null;for(var i=g.value[1],n=t(g.value[1],g.value[0]);!(g=e.next()).done;){var A=xc(g.value,2),o=A[0],C=A[1],I=t(C,o);I<n&&(n=I,i=C)}return i}},{key:"reduce",value:function(t,e){var g,i=Gk(this._pairs);try{for(i.s();!(g=i.n()).done;){var n=xc(g.value,2),A=n[0];e=t(e,n[1],A)}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"sort",value:function(t){var e=this;return new g({[bk]:function(){var g;return Zk(ck(g=kc(e._pairs)).call(g,(function(e,g){var i=xc(e,2),n=i[0],A=i[1],o=xc(g,2),C=o[0],I=o[1];return t(A,I,n,C)})))}})}}]),g}(bk);function Wk(t,e){var g=Vc(t);if(Xf){var i=Xf(t);e&&(i=ba(i).call(i,(function(e){return Ap(t,e).enumerable}))),g.push.apply(g,i)}return g}function Uk(t){for(var e=1;e<arguments.length;e++){var g,i,n=null!=arguments[e]?arguments[e]:{};e%2?tu(g=Wk(Object(n),!0)).call(g,(function(e){Ps(t,e,n[e])})):sp?fp(t,sp(n)):tu(i=Wk(Object(n))).call(i,(function(e){pp(t,e,Ap(n,e))}))}return t}function Hk(t,e){var g=void 0!==Ec&&_l(t)||t["@@iterator"];if(!g){if(Lc(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return Qk(t,e);var i=Nc(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Pl(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Qk(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function Qk(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function Kk(t){var e=function(){if("undefined"==typeof Reflect||!Kf)return!1;if(Kf.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kf(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Rp(t);if(e){var n=Rp(this).constructor;g=Kf(i,arguments,n)}else g=i.apply(this,arguments);return Op(this,g)}}var Xk=function(t){Ep(i,t);var g=Kk(i);function i(t,n){var A;return e(this,i),Ps(vp(A=g.call(this)),"_queue",null),t&&!Lc(t)&&(n=t,t=[]),A._options=n||{},A._data=new hx,A.length=0,A._idProp=A._options.fieldId||"id",t&&t.length&&A.add(t),A.setOptions(n),A}return Ns(i,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Fk.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var g,i=this,n=[];if(Lc(t)){var A=Ta(t).call(t,(function(t){return t[i._idProp]}));if(bx(A).call(A,(function(t){return i._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var o=0,C=t.length;o<C;o++)g=this._addItem(t[o]),n.push(g)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");g=this._addItem(t),n.push(g)}return n.length&&this._trigger("add",{items:n},e),n}},{key:"update",value:function(t,e){var g=this,i=[],n=[],A=[],o=[],C=this._idProp,I=function(t){var e=t[C];if(null!=e&&g._data.has(e)){var I=t,r=Uu({},g._data.get(e)),s=g._updateItem(I);n.push(s),o.push(I),A.push(r)}else{var a=g._addItem(t);i.push(a)}};if(Lc(t))for(var r=0,s=t.length;r<s;r++)t[r]&&"object"==typeof t[r]?I(t[r]):console.warn("Ignoring input item, which is not an object at index "+r);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");I(t)}if(i.length&&this._trigger("add",{items:i},e),n.length){var a={items:n,oldData:A,data:o};this._trigger("update",a,e)}return Sc(i).call(i,n)}},{key:"updateOnly",value:function(t,e){var g,i=this;Lc(t)||(t=[t]);var n=Ta(g=Ta(t).call(t,(function(t){var e=i._data.get(t[i._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(g,(function(t){var e=t.oldData,g=t.update,n=e[i._idProp],A=function(t){for(var e,g=arguments.length,i=new Array(g>1?g-1:0),n=1;n<g;n++)i[n-1]=arguments[n];return kf.apply(void 0,Sc(e=[{},t]).call(e,i))}(e,g);return i._data.set(n,A),{id:n,oldData:e,updatedData:A}}));if(n.length){var A={items:Ta(n).call(n,(function(t){return t.id})),oldData:Ta(n).call(n,(function(t){return t.oldData})),data:Ta(n).call(n,(function(t){return t.updatedData}))};return this._trigger("update",A,e),A.items}return[]}},{key:"get",value:function(t,e){var g=void 0,i=void 0,n=void 0;zk(t)?(g=t,n=e):Lc(t)?(i=t,n=e):n=t;var A,o=n&&"Object"===n.returnType?"Object":"Array",C=n&&ba(n),I=[],r=void 0,s=void 0,a=void 0;if(null!=g)(r=this._data.get(g))&&C&&!C(r)&&(r=void 0);else if(null!=i)for(var l=0,c=i.length;l<c;l++)null==(r=this._data.get(i[l]))||C&&!C(r)||I.push(r);else for(var u,d=0,h=(s=kc(Rx(u=this._data).call(u))).length;d<h;d++)a=s[d],null==(r=this._data.get(a))||C&&!C(r)||I.push(r);if(n&&n.order&&null==g&&this._sort(I,n.order),n&&n.fields){var f=n.fields;if(null!=g&&null!=r)r=this._filterFields(r,f);else for(var p=0,v=I.length;p<v;p++)I[p]=this._filterFields(I[p],f)}if("Object"==o){for(var y={},m=0,b=I.length;m<b;m++){var w=I[m];y[w[this._idProp]]=w}return y}return null!=g?null!==(A=r)&&void 0!==A?A:null:I}},{key:"getIds",value:function(t){var e=this._data,g=t&&ba(t),i=t&&t.order,n=kc(Rx(e).call(e)),A=[];if(g)if(i){for(var o=[],C=0,I=n.length;C<I;C++){var r=n[C],s=this._data.get(r);null!=s&&g(s)&&o.push(s)}this._sort(o,i);for(var a=0,l=o.length;a<l;a++)A.push(o[a][this._idProp])}else for(var c=0,u=n.length;c<u;c++){var d=n[c],h=this._data.get(d);null!=h&&g(h)&&A.push(h[this._idProp])}else if(i){for(var f=[],p=0,v=n.length;p<v;p++){var y=n[p];f.push(e.get(y))}this._sort(f,i);for(var m=0,b=f.length;m<b;m++)A.push(f[m][this._idProp])}else for(var w=0,x=n.length;w<x;w++){var k=n[w],E=e.get(k);null!=E&&A.push(E[this._idProp])}return A}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var g=e&&ba(e),i=this._data,n=kc(Rx(i).call(i));if(e&&e.order)for(var A=this.get(e),o=0,C=A.length;o<C;o++){var I=A[o];t(I,I[this._idProp])}else for(var r=0,s=n.length;r<s;r++){var a=n[r],l=this._data.get(a);null==l||g&&!g(l)||t(l,a)}}},{key:"map",value:function(t,e){for(var g=e&&ba(e),i=[],n=this._data,A=kc(Rx(n).call(n)),o=0,C=A.length;o<C;o++){var I=A[o],r=this._data.get(I);null==r||g&&!g(r)||i.push(t(r,I))}return e&&e.order&&this._sort(i,e.order),i}},{key:"_filterFields",value:function(t,e){var g;return t?ha(g=Lc(e)?e:Vc(e)).call(g,(function(e,g){return e[g]=t[g],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var g=e;ck(t).call(t,(function(t,e){var i=t[g],n=e[g];return i>n?1:i<n?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");ck(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var g=[],i=[],n=Lc(t)?t:[t],A=0,o=n.length;A<o;A++){var C=this._remove(n[A]);if(C){var I=C[this._idProp];null!=I&&(g.push(I),i.push(C))}}return g.length&&this._trigger("remove",{items:g,oldData:i},e),g}},{key:"_remove",value:function(t){var e;if(zk(t)?e=t:t&&"object"==typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var g=this._data.get(e)||null;return this._data.delete(e),--this.length,g}return null}},{key:"clear",value:function(t){for(var e,g=kc(Rx(e=this._data).call(e)),i=[],n=0,A=g.length;n<A;n++)i.push(this._data.get(g[n]));return this._data.clear(),this.length=0,this._trigger("remove",{items:g,oldData:i},t),g}},{key:"max",value:function(t){var e,g,i=null,n=null,A=Hk(mk(e=this._data).call(e));try{for(A.s();!(g=A.n()).done;){var o=g.value,C=o[t];"number"==typeof C&&(null==n||C>n)&&(i=o,n=C)}}catch(t){A.e(t)}finally{A.f()}return i||null}},{key:"min",value:function(t){var e,g,i=null,n=null,A=Hk(mk(e=this._data).call(e));try{for(A.s();!(g=A.n()).done;){var o=g.value,C=o[t];"number"==typeof C&&(null==n||C<n)&&(i=o,n=C)}}catch(t){A.e(t)}finally{A.f()}return i||null}},{key:"distinct",value:function(t){for(var e=this._data,g=kc(Rx(e).call(e)),i=[],n=0,A=0,o=g.length;A<o;A++){for(var C=g[A],I=e.get(C)[t],r=!1,s=0;s<n;s++)if(i[s]==I){r=!0;break}r||void 0===I||(i[n]=I,n++)}return i}},{key:"_addItem",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=_k()),t}(t,this._idProp),g=e[this._idProp];if(this._data.has(g))throw new Error("Cannot add item: item with id "+g+" already exists");return this._data.set(g,e),++this.length,g}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+id(t)+")");var g=this._data.get(e);if(!g)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,Uk(Uk({},g),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new Yk({[bk]:()=>aw.mark((function g(){var i,n,A,o;return aw.wrap((function(g){for(;;)switch(g.prev=g.next){case 0:i=Hk(t),g.prev=1,i.s();case 3:if((n=i.n()).done){g.next=11;break}if(A=n.value,null==(o=e.get(A))){g.next=9;break}return g.next=9,[A,o];case 9:g.next=3;break;case 11:g.next=16;break;case 13:g.prev=13,g.t0=g.catch(1),i.e(g.t0);case 16:return g.prev=16,i.f(),g.finish(16);case 19:case"end":return g.stop()}}),g,null,[[1,13,16,19]])}))()})}var g;return new Yk({[bk]:ta(g=Rk(this._data)).call(g,this._data)})}}]),i}(jk);function Jk(t,e){var g=void 0!==Ec&&_l(t)||t["@@iterator"];if(!g){if(Lc(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return qk(t,e);var i=Nc(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Pl(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?qk(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function qk(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function $k(t){var e=function(){if("undefined"==typeof Reflect||!Kf)return!1;if(Kf.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Kf(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Rp(t);if(e){var n=Rp(this).constructor;g=Kf(i,arguments,n)}else g=i.apply(this,arguments);return Op(this,g)}}var tE=function(t){Ep(i,t);var g=$k(i);function i(t,n){var A,o;return e(this,i),Ps(vp(o=g.call(this)),"length",0),Ps(vp(o),"_ids",new Lk),o._options=n||{},o._listener=ta(A=o._onEvent).call(A,vp(o)),o.setData(t),o}return Ns(i,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:ba(this._options)}),g=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:g})}if(null!=t){this._data=t;for(var i=this._data.getIds({filter:ba(this._options)}),n=0,A=i.length;n<A;n++){var o=i[n];this._ids.add(o)}this.length=i.length,this._trigger("add",{items:i})}else this._data=new Xk;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:ba(this._options)}),e=kc(this._ids),g={},i=[],n=[],A=[],o=0,C=t.length;o<C;o++){var I=t[o];g[I]=!0,this._ids.has(I)||(i.push(I),this._ids.add(I))}for(var r=0,s=e.length;r<s;r++){var a=e[r],l=this._data.get(a);null==l?console.error("If you see this, report it please."):g[a]||(n.push(a),A.push(l),this._ids.delete(a))}this.length+=i.length-n.length,i.length&&this._trigger("add",{items:i}),n.length&&this._trigger("remove",{items:n,oldData:A})}},{key:"get",value:function(t,e){if(null==this._data)return null;var g,i=null;zk(t)||Lc(t)?(i=t,g=e):g=t;var n=Uu({},this._options,g),A=ba(this._options),o=g&&ba(g);return A&&o&&(n.filter=function(t){return A(t)&&o(t)}),null==i?this._data.get(n):this._data.get(i,n)}},{key:"getIds",value:function(t){if(this._data.length){var e,g=ba(this._options),i=null!=t?ba(t):null;return e=i?g?function(t){return g(t)&&i(t)}:i:g,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var g,i,n=ba(this._options),A=e&&ba(e);i=A?n?function(t){return n(t)&&A(t)}:A:n,tu(g=this._data).call(g,t,{filter:i,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var g,i,n=ba(this._options),A=e&&ba(e);return i=A?n?function(t){return n(t)&&A(t)}:A:n,Ta(g=this._data).call(g,t,{filter:i,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||{[bk]:ta(e=Rx(this._ids)).call(e,this._ids)})}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,g="This data view has already been disposed of.",n={get:function(){throw new Error(g)},set:function(){throw new Error(g)},configurable:!1},A=Jk(jc(i.prototype));try{for(A.s();!(e=A.n()).done;){var o=e.value;pp(this,o,n)}}catch(t){A.e(t)}finally{A.f()}}},{key:"_onEvent",value:function(t,e,g){if(e&&e.items&&this._data){var i=e.items,n=[],A=[],o=[],C=[],I=[],r=[];switch(t){case"add":for(var s=0,a=i.length;s<a;s++){var l=i[s];this.get(l)&&(this._ids.add(l),n.push(l))}break;case"update":for(var c=0,u=i.length;c<u;c++){var d=i[c];this.get(d)?this._ids.has(d)?(A.push(d),I.push(e.data[c]),C.push(e.oldData[c])):(this._ids.add(d),n.push(d)):this._ids.has(d)&&(this._ids.delete(d),o.push(d),r.push(e.oldData[c]))}break;case"remove":for(var h=0,f=i.length;h<f;h++){var p=i[h];this._ids.has(p)&&(this._ids.delete(p),o.push(p),r.push(e.oldData[h]))}}this.length+=n.length-o.length,n.length&&this._trigger("add",{items:n},g),A.length&&this._trigger("update",{items:A,oldData:C,data:I},g),o.length&&this._trigger("remove",{items:o,oldData:r},g)}}}]),i}(jk);function eE(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof tu(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Ta(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}t.DELETE=xf,t.DataSet=Xk,t.DataStream=Yk,t.DataView=tE,t.Queue=Fk,t.createNewDataPipeFrom=function(t){return new Wa(t)},t.isDataSetLike=eE,t.isDataViewLike=function(t,e){return"object"==typeof e&&null!==e&&t===e.idProp&&"function"==typeof tu(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Ta(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&eE(t,e.getDataSet())}}(e)},107:function(t,e,g){!function(t,e){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==g.g?g.g:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var A=function(t){return t&&t.Math===Math&&t},o=A("object"==typeof globalThis&&globalThis)||A("object"==typeof window&&window)||A("object"==typeof self&&self)||A("object"==typeof i&&i)||function(){return this}()||i||Function("return this")(),C=function(t){try{return!!t()}catch(t){return!0}},I=!C((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),r=I,s=Function.prototype,a=s.apply,l=s.call,c="object"==typeof Reflect&&Reflect.apply||(r?l.bind(a):function(){return l.apply(a,arguments)}),u=I,d=Function.prototype,h=d.call,f=u&&d.bind.bind(h,h),p=u?f:function(t){return function(){return h.apply(t,arguments)}},v=p,y=v({}.toString),m=v("".slice),b=function(t){return m(y(t),8,-1)},w=b,x=p,k=function(t){if("Function"===w(t))return x(t)},E="object"==typeof document&&document.all,O={all:E,IS_HTMLDDA:void 0===E&&void 0!==E},T=O.all,D=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===T}:function(t){return"function"==typeof t},R={},S=!C((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=I,P=Function.prototype.call,M=N?P.bind(P):function(){return P.apply(P,arguments)},B={},_={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,F=z&&!_.call({1:2},1);B.f=F?function(t){var e=z(this,t);return!!e&&e.enumerable}:_;var j,L,Z=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},G=C,V=b,Y=Object,W=p("".split),U=G((function(){return!Y("z").propertyIsEnumerable(0)}))?function(t){return"String"===V(t)?W(t,""):Y(t)}:Y,H=function(t){return null==t},Q=H,K=TypeError,X=function(t){if(Q(t))throw new K("Can't call method on "+t);return t},J=U,q=X,$=function(t){return J(q(t))},tt=D,et=O.all,gt=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:tt(t)||t===et}:function(t){return"object"==typeof t?null!==t:tt(t)},it={},nt=it,At=o,ot=D,Ct=function(t){return ot(t)?t:void 0},It=function(t,e){return arguments.length<2?Ct(nt[t])||Ct(At[t]):nt[t]&&nt[t][e]||At[t]&&At[t][e]},rt=p({}.isPrototypeOf),st="undefined"!=typeof navigator&&String(navigator.userAgent)||"",at=o,lt=st,ct=at.process,ut=at.Deno,dt=ct&&ct.versions||ut&&ut.version,ht=dt&&dt.v8;ht&&(L=(j=ht.split("."))[0]>0&&j[0]<4?1:+(j[0]+j[1])),!L&&lt&&(!(j=lt.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=lt.match(/Chrome\/(\d+)/))&&(L=+j[1]);var ft=L,pt=ft,vt=C,yt=o.String,mt=!!Object.getOwnPropertySymbols&&!vt((function(){var t=Symbol("symbol detection");return!yt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),bt=mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wt=It,xt=D,kt=rt,Et=Object,Ot=bt?function(t){return"symbol"==typeof t}:function(t){var e=wt("Symbol");return xt(e)&&kt(e.prototype,Et(t))},Tt=String,Dt=function(t){try{return Tt(t)}catch(t){return"Object"}},Rt=D,St=Dt,Nt=TypeError,Pt=function(t){if(Rt(t))return t;throw new Nt(St(t)+" is not a function")},Mt=Pt,Bt=H,_t=function(t,e){var g=t[e];return Bt(g)?void 0:Mt(g)},zt=M,Ft=D,jt=gt,Lt=TypeError,Zt={exports:{}},Gt=o,Vt=Object.defineProperty,Yt="__core-js_shared__",Wt=o[Yt]||function(t,e){try{Vt(Gt,t,{value:e,configurable:!0,writable:!0})}catch(g){Gt[t]=e}return e}(Yt,{}),Ut=Wt;(Zt.exports=function(t,e){return Ut[t]||(Ut[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ht=Zt.exports,Qt=X,Kt=Object,Xt=function(t){return Kt(Qt(t))},Jt=Xt,qt=p({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return qt(Jt(t),e)},te=p,ee=0,ge=Math.random(),ie=te(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ie(++ee+ge,36)},Ae=Ht,oe=$t,Ce=ne,Ie=mt,re=bt,se=o.Symbol,ae=Ae("wks"),le=re?se.for||se:se&&se.withoutSetter||Ce,ce=function(t){return oe(ae,t)||(ae[t]=Ie&&oe(se,t)?se[t]:le("Symbol."+t)),ae[t]},ue=M,de=gt,he=Ot,fe=_t,pe=TypeError,ve=ce("toPrimitive"),ye=function(t,e){if(!de(t)||he(t))return t;var g,i=fe(t,ve);if(i){if(void 0===e&&(e="default"),g=ue(i,t,e),!de(g)||he(g))return g;throw new pe("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var g,i;if("string"===e&&Ft(g=t.toString)&&!jt(i=zt(g,t)))return i;if(Ft(g=t.valueOf)&&!jt(i=zt(g,t)))return i;if("string"!==e&&Ft(g=t.toString)&&!jt(i=zt(g,t)))return i;throw new Lt("Can't convert object to primitive value")}(t,e)},me=Ot,be=function(t){var e=ye(t,"string");return me(e)?e:e+""},we=gt,xe=o.document,ke=we(xe)&&we(xe.createElement),Ee=function(t){return ke?xe.createElement(t):{}},Oe=Ee,Te=!S&&!C((function(){return 7!==Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),De=S,Re=M,Se=B,Ne=Z,Pe=$,Me=be,Be=$t,_e=Te,ze=Object.getOwnPropertyDescriptor;R.f=De?ze:function(t,e){if(t=Pe(t),e=Me(e),_e)try{return ze(t,e)}catch(t){}if(Be(t,e))return Ne(!Re(Se.f,t,e),t[e])};var Fe=C,je=D,Le=/#|\.prototype\./,Ze=function(t,e){var g=Ve[Ge(t)];return g===We||g!==Ye&&(je(e)?Fe(e):!!e)},Ge=Ze.normalize=function(t){return String(t).replace(Le,".").toLowerCase()},Ve=Ze.data={},Ye=Ze.NATIVE="N",We=Ze.POLYFILL="P",Ue=Ze,He=Pt,Qe=I,Ke=k(k.bind),Xe=function(t,e){return He(t),void 0===e?t:Qe?Ke(t,e):function(){return t.apply(e,arguments)}},Je={},qe=S&&C((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),$e=gt,tg=String,eg=TypeError,gg=function(t){if($e(t))return t;throw new eg(tg(t)+" is not an object")},ig=S,ng=Te,Ag=qe,og=gg,Cg=be,Ig=TypeError,rg=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,ag="enumerable",lg="configurable",cg="writable";Je.f=ig?Ag?function(t,e,g){if(og(t),e=Cg(e),og(g),"function"==typeof t&&"prototype"===e&&"value"in g&&cg in g&&!g[cg]){var i=sg(t,e);i&&i[cg]&&(t[e]=g.value,g={configurable:lg in g?g[lg]:i[lg],enumerable:ag in g?g[ag]:i[ag],writable:!1})}return rg(t,e,g)}:rg:function(t,e,g){if(og(t),e=Cg(e),og(g),ng)try{return rg(t,e,g)}catch(t){}if("get"in g||"set"in g)throw new Ig("Accessors not supported");return"value"in g&&(t[e]=g.value),t};var ug=Je,dg=Z,hg=S?function(t,e,g){return ug.f(t,e,dg(1,g))}:function(t,e,g){return t[e]=g,t},fg=o,pg=c,vg=k,yg=D,mg=R.f,bg=Ue,wg=it,xg=Xe,kg=hg,Eg=$t,Og=function(t){var e=function(g,i,n){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(g);case 2:return new t(g,i)}return new t(g,i,n)}return pg(t,this,arguments)};return e.prototype=t.prototype,e},Tg=function(t,e){var g,i,n,A,o,C,I,r,s,a=t.target,l=t.global,c=t.stat,u=t.proto,d=l?fg:c?fg[a]:(fg[a]||{}).prototype,h=l?wg:wg[a]||kg(wg,a,{})[a],f=h.prototype;for(A in e)i=!(g=bg(l?A:a+(c?".":"#")+A,t.forced))&&d&&Eg(d,A),C=h[A],i&&(I=t.dontCallGetSet?(s=mg(d,A))&&s.value:d[A]),o=i&&I?I:e[A],i&&typeof C==typeof o||(r=t.bind&&i?xg(o,fg):t.wrap&&i?Og(o):u&&yg(o)?vg(o):o,(t.sham||o&&o.sham||C&&C.sham)&&kg(r,"sham",!0),kg(h,A,r),u&&(Eg(wg,n=a+"Prototype")||kg(wg,n,{}),kg(wg[n],A,o),t.real&&f&&(g||!f[A])&&kg(f,A,o)))},Dg=Math.ceil,Rg=Math.floor,Sg=Math.trunc||function(t){var e=+t;return(e>0?Rg:Dg)(e)},Ng=function(t){var e=+t;return e!=e||0===e?0:Sg(e)},Pg=Ng,Mg=Math.max,Bg=Math.min,_g=function(t,e){var g=Pg(t);return g<0?Mg(g+e,0):Bg(g,e)},zg=Ng,Fg=Math.min,jg=function(t){return function(t){return t>0?Fg(zg(t),9007199254740991):0}(t.length)},Lg=$,Zg=_g,Gg=jg,Vg=function(t){return function(e,g,i){var n,A=Lg(e),o=Gg(A),C=Zg(i,o);if(t&&g!=g){for(;o>C;)if((n=A[C++])!=n)return!0}else for(;o>C;C++)if((t||C in A)&&A[C]===g)return t||C||0;return!t&&-1}},Yg={includes:Vg(!0),indexOf:Vg(!1)},Wg={},Ug=$t,Hg=$,Qg=Yg.indexOf,Kg=Wg,Xg=p([].push),Jg=function(t,e){var g,i=Hg(t),n=0,A=[];for(g in i)!Ug(Kg,g)&&Ug(i,g)&&Xg(A,g);for(;e.length>n;)Ug(i,g=e[n++])&&(~Qg(A,g)||Xg(A,g));return A},qg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$g=Jg,ti=qg,ei=Object.keys||function(t){return $g(t,ti)},gi={};gi.f=Object.getOwnPropertySymbols;var ii=S,ni=p,Ai=M,oi=C,Ci=ei,Ii=gi,ri=B,si=Xt,ai=U,li=Object.assign,ci=Object.defineProperty,ui=ni([].concat),di=!li||oi((function(){if(ii&&1!==li({b:1},li(ci({},"a",{enumerable:!0,get:function(){ci(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},g=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[g]=7,i.split("").forEach((function(t){e[t]=t})),7!==li({},t)[g]||Ci(li({},e)).join("")!==i}))?function(t,e){for(var g=si(t),i=arguments.length,n=1,A=Ii.f,o=ri.f;i>n;)for(var C,I=ai(arguments[n++]),r=A?ui(Ci(I),A(I)):Ci(I),s=r.length,a=0;s>a;)C=r[a++],ii&&!Ai(o,I,C)||(g[C]=I[C]);return g}:li,hi=di;Tg({target:"Object",stat:!0,arity:2,forced:Object.assign!==hi},{assign:hi});var fi=n(it.Object.assign),pi=p([].slice),vi=p,yi=Pt,mi=gt,bi=$t,wi=pi,xi=I,ki=Function,Ei=vi([].concat),Oi=vi([].join),Ti={},Di=xi?ki.bind:function(t){var e=yi(this),g=e.prototype,i=wi(arguments,1),n=function(){var g=Ei(i,wi(arguments));return this instanceof n?function(t,e,g){if(!bi(Ti,e)){for(var i=[],n=0;n<e;n++)i[n]="a["+n+"]";Ti[e]=ki("C,a","return new C("+Oi(i,",")+")")}return Ti[e](t,g)}(e,g.length,g):e.apply(t,g)};return mi(g)&&(n.prototype=g),n},Ri=Di;Tg({target:"Function",proto:!0,forced:Function.bind!==Ri},{bind:Ri});var Si=it,Ni=function(t){return Si[t+"Prototype"]},Pi=Ni("Function").bind,Mi=rt,Bi=Pi,_i=Function.prototype,zi=function(t){var e=t.bind;return t===_i||Mi(_i,t)&&e===_i.bind?Bi:e},Fi=n(zi);function ji(t,e,g,i){t.beginPath(),t.arc(e,g,i,0,2*Math.PI,!1),t.closePath()}function Li(t,e,g,i,n,A){var o=Math.PI/180;i-2*A<0&&(A=i/2),n-2*A<0&&(A=n/2),t.beginPath(),t.moveTo(e+A,g),t.lineTo(e+i-A,g),t.arc(e+i-A,g+A,A,270*o,360*o,!1),t.lineTo(e+i,g+n-A),t.arc(e+i-A,g+n-A,A,0,90*o,!1),t.lineTo(e+A,g+n),t.arc(e+A,g+n-A,A,90*o,180*o,!1),t.lineTo(e,g+A),t.arc(e+A,g+A,A,180*o,270*o,!1),t.closePath()}function Zi(t,e,g,i,n){var A=.5522848,o=i/2*A,C=n/2*A,I=e+i,r=g+n,s=e+i/2,a=g+n/2;t.beginPath(),t.moveTo(e,a),t.bezierCurveTo(e,a-C,s-o,g,s,g),t.bezierCurveTo(s+o,g,I,a-C,I,a),t.bezierCurveTo(I,a+C,s+o,r,s,r),t.bezierCurveTo(s-o,r,e,a+C,e,a),t.closePath()}function Gi(t,e,g,i,n){var A=n*(1/3),o=.5522848,C=i/2*o,I=A/2*o,r=e+i,s=g+A,a=e+i/2,l=g+A/2,c=g+(n-A/2),u=g+n;t.beginPath(),t.moveTo(r,l),t.bezierCurveTo(r,l+I,a+C,s,a,s),t.bezierCurveTo(a-C,s,e,l+I,e,l),t.bezierCurveTo(e,l-I,a-C,g,a,g),t.bezierCurveTo(a+C,g,r,l-I,r,l),t.lineTo(r,c),t.bezierCurveTo(r,c+I,a+C,u,a,u),t.bezierCurveTo(a-C,u,e,c+I,e,c),t.lineTo(e,l)}function Vi(t,e,g,i,n,A){t.beginPath(),t.moveTo(e,g);for(var o=A.length,C=i-e,I=n-g,r=I/C,s=Math.sqrt(C*C+I*I),a=0,l=!0,c=0,u=+A[0];s>=.1;)(u=+A[a++%o])>s&&(u=s),c=Math.sqrt(u*u/(1+r*r)),e+=c=C<0?-c:c,g+=r*c,!0===l?t.lineTo(e,g):t.moveTo(e,g),s-=u,l=!l}var Yi={circle:ji,dashedLine:Vi,database:Gi,diamond:function(t,e,g,i){t.beginPath(),t.lineTo(e,g+i),t.lineTo(e+i,g),t.lineTo(e,g-i),t.lineTo(e-i,g),t.closePath()},ellipse:Zi,ellipse_vis:Zi,hexagon:function(t,e,g,i){t.beginPath();var n=2*Math.PI/6;t.moveTo(e+i,g);for(var A=1;A<6;A++)t.lineTo(e+i*Math.cos(n*A),g+i*Math.sin(n*A));t.closePath()},roundRect:Li,square:function(t,e,g,i){t.beginPath(),t.rect(e-i,g-i,2*i,2*i),t.closePath()},star:function(t,e,g,i){t.beginPath(),g+=.1*(i*=.82);for(var n=0;n<10;n++){var A=n%2==0?1.3*i:.5*i;t.lineTo(e+A*Math.sin(2*n*Math.PI/10),g-A*Math.cos(2*n*Math.PI/10))}t.closePath()},triangle:function(t,e,g,i){t.beginPath(),g+=.275*(i*=1.15);var n=2*i,A=n/2,o=Math.sqrt(3)/6*n,C=Math.sqrt(n*n-A*A);t.moveTo(e,g-(C-o)),t.lineTo(e+A,g+o),t.lineTo(e-A,g+o),t.lineTo(e,g-(C-o)),t.closePath()},triangleDown:function(t,e,g,i){t.beginPath(),g-=.275*(i*=1.15);var n=2*i,A=n/2,o=Math.sqrt(3)/6*n,C=Math.sqrt(n*n-A*A);t.moveTo(e,g+(C-o)),t.lineTo(e+A,g-o),t.lineTo(e-A,g-o),t.lineTo(e,g+(C-o)),t.closePath()}},Wi={exports:{}};!function(t){function e(t){if(t)return function(t){for(var g in e.prototype)t[g]=e.prototype[g];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function g(){this.off(t,g),e.apply(this,arguments)}return g.fn=e,this.on(t,g),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var g,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<i.length;n++)if((g=i[n])===e||g.fn===e){i.splice(n,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),g=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(g){i=0;for(var n=(g=g.slice(0)).length;i<n;++i)g[i].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}(Wi);var Ui=n(Wi.exports),Hi={};Hi[ce("toStringTag")]="z";var Qi,Ki,Xi,Ji="[object z]"===String(Hi),qi=Ji,$i=D,tn=b,en=ce("toStringTag"),gn=Object,nn="Arguments"===tn(function(){return arguments}()),An=qi?tn:function(t){var e,g,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(g=function(t,e){try{return t[e]}catch(t){}}(e=gn(t),en))?g:nn?tn(e):"Object"===(i=tn(e))&&$i(e.callee)?"Arguments":i},on=An,Cn=String,In=function(t){if("Symbol"===on(t))throw new TypeError("Cannot convert a Symbol value to a string");return Cn(t)},rn=p,sn=Ng,an=In,ln=X,cn=rn("".charAt),un=rn("".charCodeAt),dn=rn("".slice),hn=function(t){return function(e,g){var i,n,A=an(ln(e)),o=sn(g),C=A.length;return o<0||o>=C?t?"":void 0:(i=un(A,o))<55296||i>56319||o+1===C||(n=un(A,o+1))<56320||n>57343?t?cn(A,o):i:t?dn(A,o,o+2):n-56320+(i-55296<<10)+65536}},fn={codeAt:hn(!1),charAt:hn(!0)},pn=D,vn=o.WeakMap,yn=pn(vn)&&/native code/.test(String(vn)),mn=ne,bn=Ht("keys"),wn=function(t){return bn[t]||(bn[t]=mn(t))},xn=yn,kn=o,En=gt,On=hg,Tn=$t,Dn=Wt,Rn=wn,Sn=Wg,Nn="Object already initialized",Pn=kn.TypeError,Mn=kn.WeakMap;if(xn||Dn.state){var Bn=Dn.state||(Dn.state=new Mn);Bn.get=Bn.get,Bn.has=Bn.has,Bn.set=Bn.set,Qi=function(t,e){if(Bn.has(t))throw new Pn(Nn);return e.facade=t,Bn.set(t,e),e},Ki=function(t){return Bn.get(t)||{}},Xi=function(t){return Bn.has(t)}}else{var _n=Rn("state");Sn[_n]=!0,Qi=function(t,e){if(Tn(t,_n))throw new Pn(Nn);return e.facade=t,On(t,_n,e),e},Ki=function(t){return Tn(t,_n)?t[_n]:{}},Xi=function(t){return Tn(t,_n)}}var zn={set:Qi,get:Ki,has:Xi,enforce:function(t){return Xi(t)?Ki(t):Qi(t,{})},getterFor:function(t){return function(e){var g;if(!En(e)||(g=Ki(e)).type!==t)throw new Pn("Incompatible receiver, "+t+" required");return g}}},Fn=S,jn=$t,Ln=Function.prototype,Zn=Fn&&Object.getOwnPropertyDescriptor,Gn=jn(Ln,"name"),Vn={EXISTS:Gn,PROPER:Gn&&"something"===function(){}.name,CONFIGURABLE:Gn&&(!Fn||Fn&&Zn(Ln,"name").configurable)},Yn={},Wn=S,Un=qe,Hn=Je,Qn=gg,Kn=$,Xn=ei;Yn.f=Wn&&!Un?Object.defineProperties:function(t,e){Qn(t);for(var g,i=Kn(e),n=Xn(e),A=n.length,o=0;A>o;)Hn.f(t,g=n[o++],i[g]);return t};var Jn,qn=It("document","documentElement"),$n=gg,tA=Yn,eA=qg,gA=Wg,iA=qn,nA=Ee,AA="prototype",oA="script",CA=wn("IE_PROTO"),IA=function(){},rA=function(t){return"<"+oA+">"+t+"</"+oA+">"},sA=function(t){t.write(rA("")),t.close();var e=t.parentWindow.Object;return t=null,e},aA=function(){try{Jn=new ActiveXObject("htmlfile")}catch(t){}var t,e,g;aA="undefined"!=typeof document?document.domain&&Jn?sA(Jn):(e=nA("iframe"),g="java"+oA+":",e.style.display="none",iA.appendChild(e),e.src=String(g),(t=e.contentWindow.document).open(),t.write(rA("document.F=Object")),t.close(),t.F):sA(Jn);for(var i=eA.length;i--;)delete aA[AA][eA[i]];return aA()};gA[CA]=!0;var lA,cA,uA,dA=Object.create||function(t,e){var g;return null!==t?(IA[AA]=$n(t),g=new IA,IA[AA]=null,g[CA]=t):g=aA(),void 0===e?g:tA.f(g,e)},hA=!C((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),fA=$t,pA=D,vA=Xt,yA=hA,mA=wn("IE_PROTO"),bA=Object,wA=bA.prototype,xA=yA?bA.getPrototypeOf:function(t){var e=vA(t);if(fA(e,mA))return e[mA];var g=e.constructor;return pA(g)&&e instanceof g?g.prototype:e instanceof bA?wA:null},kA=hg,EA=function(t,e,g,i){return i&&i.enumerable?t[e]=g:kA(t,e,g),t},OA=C,TA=D,DA=gt,RA=dA,SA=xA,NA=EA,PA=ce("iterator"),MA=!1;[].keys&&("next"in(uA=[].keys())?(cA=SA(SA(uA)))!==Object.prototype&&(lA=cA):MA=!0);var BA=!DA(lA)||OA((function(){var t={};return lA[PA].call(t)!==t}));TA((lA=BA?{}:RA(lA))[PA])||NA(lA,PA,(function(){return this}));var _A={IteratorPrototype:lA,BUGGY_SAFARI_ITERATORS:MA},zA=An,FA=Ji?{}.toString:function(){return"[object "+zA(this)+"]"},jA=Ji,LA=Je.f,ZA=hg,GA=$t,VA=FA,YA=ce("toStringTag"),WA=function(t,e,g,i){if(t){var n=g?t:t.prototype;GA(n,YA)||LA(n,YA,{configurable:!0,value:e}),i&&!jA&&ZA(n,"toString",VA)}},UA={},HA=_A.IteratorPrototype,QA=dA,KA=Z,XA=WA,JA=UA,qA=function(){return this},$A=p,to=Pt,eo=D,go=String,io=TypeError,no=gg,Ao=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,g={};try{(t=function(t,e,g){try{return $A(to(Object.getOwnPropertyDescriptor(t,e)[g]))}catch(t){}}(Object.prototype,"__proto__","set"))(g,[]),e=g instanceof Array}catch(t){}return function(g,i){return no(g),function(t){if("object"==typeof t||eo(t))return t;throw new io("Can't set "+go(t)+" as a prototype")}(i),e?t(g,i):g.__proto__=i,g}}():void 0),oo=Tg,Co=M,Io=xA,ro=WA,so=EA,ao=UA,lo=Vn.PROPER,co=_A.BUGGY_SAFARI_ITERATORS,uo=ce("iterator"),ho="keys",fo="values",po="entries",vo=function(){return this},yo=function(t,e,g,i,n,A,o){!function(t,e,g,i){var n=e+" Iterator";t.prototype=QA(HA,{next:KA(+!i,g)}),XA(t,n,!1,!0),JA[n]=qA}(g,e,i);var C,I,r,s=function(t){if(t===n&&d)return d;if(!co&&t&&t in c)return c[t];switch(t){case ho:case fo:case po:return function(){return new g(this,t)}}return function(){return new g(this)}},a=e+" Iterator",l=!1,c=t.prototype,u=c[uo]||c["@@iterator"]||n&&c[n],d=!co&&u||s(n),h="Array"===e&&c.entries||u;if(h&&(C=Io(h.call(new t)))!==Object.prototype&&C.next&&(ro(C,a,!0,!0),ao[a]=vo),lo&&n===fo&&u&&u.name!==fo&&(l=!0,d=function(){return Co(u,this)}),n)if(I={values:s(fo),keys:A?d:s(ho),entries:s(po)},o)for(r in I)(co||l||!(r in c))&&so(c,r,I[r]);else oo({target:e,proto:!0,forced:co||l},I);return o&&c[uo]!==d&&so(c,uo,d,{name:n}),ao[e]=d,I},mo=function(t,e){return{value:t,done:e}},bo=fn.charAt,wo=In,xo=zn,ko=yo,Eo=mo,Oo="String Iterator",To=xo.set,Do=xo.getterFor(Oo);ko(String,"String",(function(t){To(this,{type:Oo,string:wo(t),index:0})}),(function(){var t,e=Do(this),g=e.string,i=e.index;return i>=g.length?Eo(void 0,!0):(t=bo(g,i),e.index+=t.length,Eo(t,!1))}));var Ro=M,So=gg,No=_t,Po=function(t,e,g){var i,n;So(t);try{if(!(i=No(t,"return"))){if("throw"===e)throw g;return g}i=Ro(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw g;if(n)throw i;return So(i),g},Mo=gg,Bo=Po,_o=UA,zo=ce("iterator"),Fo=Array.prototype,jo=function(t){return void 0!==t&&(_o.Array===t||Fo[zo]===t)},Lo=D,Zo=Wt,Go=p(Function.toString);Lo(Zo.inspectSource)||(Zo.inspectSource=function(t){return Go(t)});var Vo=Zo.inspectSource,Yo=p,Wo=C,Uo=D,Ho=An,Qo=Vo,Ko=function(){},Xo=[],Jo=It("Reflect","construct"),qo=/^\s*(?:class|function)\b/,$o=Yo(qo.exec),tC=!qo.test(Ko),eC=function(t){if(!Uo(t))return!1;try{return Jo(Ko,Xo,t),!0}catch(t){return!1}},gC=function(t){if(!Uo(t))return!1;switch(Ho(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tC||!!$o(qo,Qo(t))}catch(t){return!0}};gC.sham=!0;var iC=!Jo||Wo((function(){var t;return eC(eC.call)||!eC(Object)||!eC((function(){t=!0}))||t}))?gC:eC,nC=be,AC=Je,oC=Z,CC=function(t,e,g){var i=nC(e);i in t?AC.f(t,i,oC(0,g)):t[i]=g},IC=An,rC=_t,sC=H,aC=UA,lC=ce("iterator"),cC=function(t){if(!sC(t))return rC(t,lC)||rC(t,"@@iterator")||aC[IC(t)]},uC=M,dC=Pt,hC=gg,fC=Dt,pC=cC,vC=TypeError,yC=function(t,e){var g=arguments.length<2?pC(t):e;if(dC(g))return hC(uC(g,t));throw new vC(fC(t)+" is not iterable")},mC=Xe,bC=M,wC=Xt,xC=function(t,e,g,i){try{return i?e(Mo(g)[0],g[1]):e(g)}catch(e){Bo(t,"throw",e)}},kC=jo,EC=iC,OC=jg,TC=CC,DC=yC,RC=cC,SC=Array,NC=ce("iterator"),PC=!1;try{var MC=0,BC={next:function(){return{done:!!MC++}},return:function(){PC=!0}};BC[NC]=function(){return this},Array.from(BC,(function(){throw 2}))}catch(t){}Tg({target:"Array",stat:!0,forced:!function(t,e){try{if(!e&&!PC)return!1}catch(t){return!1}var g=!1;try{var i={};i[NC]=function(){return{next:function(){return{done:g=!0}}}},t(i)}catch(t){}return g}((function(t){Array.from(t)}))},{from:function(t){var e=wC(t),g=EC(this),i=arguments.length,n=i>1?arguments[1]:void 0,A=void 0!==n;A&&(n=mC(n,i>2?arguments[2]:void 0));var o,C,I,r,s,a,l=RC(e),c=0;if(!l||this===SC&&kC(l))for(o=OC(e),C=g?new this(o):SC(o);o>c;c++)a=A?n(e[c],c):e[c],TC(C,c,a);else for(s=(r=DC(e,l)).next,C=g?new this:[];!(I=bC(s,r)).done;c++)a=A?xC(r,n,[I.value,c],!0):I.value,TC(C,c,a);return C.length=c,C}});var _C=it.Array.from,zC=n(_C),FC=$,jC=UA,LC=zn;Je.f;var ZC=yo,GC=mo,VC="Array Iterator",YC=LC.set,WC=LC.getterFor(VC);ZC(Array,"Array",(function(t,e){YC(this,{type:VC,target:FC(t),index:0,kind:e})}),(function(){var t=WC(this),e=t.target,g=t.kind,i=t.index++;if(!e||i>=e.length)return t.target=void 0,GC(void 0,!0);switch(g){case"keys":return GC(i,!1);case"values":return GC(e[i],!1)}return GC([i,e[i]],!1)}),"values"),jC.Arguments=jC.Array;var UC=cC,HC=o,QC=An,KC=hg,XC=UA,JC=ce("toStringTag");for(var qC in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var $C=HC[qC],tI=$C&&$C.prototype;tI&&QC(tI)!==JC&&KC(tI,JC,qC),XC[qC]=XC.Array}var eI=UC,gI=n(eI),iI=n(eI);function nI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var AI={exports:{}},oI=Tg,CI=S,II=Je.f;oI({target:"Object",stat:!0,forced:Object.defineProperty!==II,sham:!CI},{defineProperty:II});var rI=it.Object,sI=AI.exports=function(t,e,g){return rI.defineProperty(t,e,g)};rI.defineProperty.sham&&(sI.sham=!0);var aI=AI.exports,lI=n(aI),cI=b,uI=Array.isArray||function(t){return"Array"===cI(t)},dI=TypeError,hI=function(t){if(t>9007199254740991)throw dI("Maximum allowed index exceeded");return t},fI=uI,pI=iC,vI=gt,yI=ce("species"),mI=Array,bI=function(t,e){return new(function(t){var e;return fI(t)&&(e=t.constructor,(pI(e)&&(e===mI||fI(e.prototype))||vI(e)&&null===(e=e[yI]))&&(e=void 0)),void 0===e?mI:e}(t))(0===e?0:e)},wI=C,xI=ft,kI=ce("species"),EI=function(t){return xI>=51||!wI((function(){var e=[];return(e.constructor={})[kI]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},OI=Tg,TI=C,DI=uI,RI=gt,SI=Xt,NI=jg,PI=hI,MI=CC,BI=bI,_I=EI,zI=ft,FI=ce("isConcatSpreadable"),jI=zI>=51||!TI((function(){var t=[];return t[FI]=!1,t.concat()[0]!==t})),LI=function(t){if(!RI(t))return!1;var e=t[FI];return void 0!==e?!!e:DI(t)};OI({target:"Array",proto:!0,arity:1,forced:!jI||!_I("concat")},{concat:function(t){var e,g,i,n,A,o=SI(this),C=BI(o,0),I=0;for(e=-1,i=arguments.length;e<i;e++)if(LI(A=-1===e?o:arguments[e]))for(n=NI(A),PI(I+n),g=0;g<n;g++,I++)g in A&&MI(C,I,A[g]);else PI(I+1),MI(C,I++,A);return C.length=I,C}});var ZI={},GI=Jg,VI=qg.concat("length","prototype");ZI.f=Object.getOwnPropertyNames||function(t){return GI(t,VI)};var YI={},WI=_g,UI=jg,HI=CC,QI=Array,KI=Math.max,XI=function(t,e,g){for(var i=UI(t),n=WI(e,i),A=WI(void 0===g?i:g,i),o=QI(KI(A-n,0)),C=0;n<A;n++,C++)HI(o,C,t[n]);return o.length=C,o},JI=b,qI=$,$I=ZI.f,tr=XI,er="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];YI.f=function(t){return er&&"Window"===JI(t)?function(t){try{return $I(t)}catch(t){return tr(er)}}(t):$I(qI(t))};var gr=Je,ir=function(t,e,g){return gr.f(t,e,g)},nr={},Ar=ce;nr.f=Ar;var or=it,Cr=$t,Ir=nr,rr=Je.f,sr=function(t){var e=or.Symbol||(or.Symbol={});Cr(e,t)||rr(e,t,{value:Ir.f(t)})},ar=M,lr=It,cr=ce,ur=EA,dr=function(){var t=lr("Symbol"),e=t&&t.prototype,g=e&&e.valueOf,i=cr("toPrimitive");e&&!e[i]&&ur(e,i,(function(t){return ar(g,this)}),{arity:1})},hr=Xe,fr=U,pr=Xt,vr=jg,yr=bI,mr=p([].push),br=function(t){var e=1===t,g=2===t,i=3===t,n=4===t,A=6===t,o=7===t,C=5===t||A;return function(I,r,s,a){for(var l,c,u=pr(I),d=fr(u),h=hr(r,s),f=vr(d),p=0,v=a||yr,y=e?v(I,f):g||o?v(I,0):void 0;f>p;p++)if((C||p in d)&&(c=h(l=d[p],p,u),t))if(e)y[p]=c;else if(c)switch(t){case 3:return!0;case 5:return l;case 6:return p;case 2:mr(y,l)}else switch(t){case 4:return!1;case 7:mr(y,l)}return A?-1:i||n?n:y}},wr={forEach:br(0),map:br(1),filter:br(2),some:br(3),every:br(4),find:br(5),findIndex:br(6),filterReject:br(7)},xr=Tg,kr=o,Er=M,Or=p,Tr=S,Dr=mt,Rr=C,Sr=$t,Nr=rt,Pr=gg,Mr=$,Br=be,_r=In,zr=Z,Fr=dA,jr=ei,Lr=ZI,Zr=YI,Gr=gi,Vr=R,Yr=Je,Wr=Yn,Ur=B,Hr=EA,Qr=ir,Kr=Ht,Xr=Wg,Jr=ne,qr=ce,$r=nr,ts=sr,es=dr,gs=WA,is=zn,ns=wr.forEach,As=wn("hidden"),os="Symbol",Cs="prototype",Is=is.set,rs=is.getterFor(os),ss=Object[Cs],as=kr.Symbol,ls=as&&as[Cs],cs=kr.RangeError,us=kr.TypeError,ds=kr.QObject,hs=Vr.f,fs=Yr.f,ps=Zr.f,vs=Ur.f,ys=Or([].push),ms=Kr("symbols"),bs=Kr("op-symbols"),ws=Kr("wks"),xs=!ds||!ds[Cs]||!ds[Cs].findChild,ks=function(t,e,g){var i=hs(ss,e);i&&delete ss[e],fs(t,e,g),i&&t!==ss&&fs(ss,e,i)},Es=Tr&&Rr((function(){return 7!==Fr(fs({},"a",{get:function(){return fs(this,"a",{value:7}).a}})).a}))?ks:fs,Os=function(t,e){var g=ms[t]=Fr(ls);return Is(g,{type:os,tag:t,description:e}),Tr||(g.description=e),g},Ts=function(t,e,g){t===ss&&Ts(bs,e,g),Pr(t);var i=Br(e);return Pr(g),Sr(ms,i)?(g.enumerable?(Sr(t,As)&&t[As][i]&&(t[As][i]=!1),g=Fr(g,{enumerable:zr(0,!1)})):(Sr(t,As)||fs(t,As,zr(1,{})),t[As][i]=!0),Es(t,i,g)):fs(t,i,g)},Ds=function(t,e){Pr(t);var g=Mr(e),i=jr(g).concat(Ps(g));return ns(i,(function(e){Tr&&!Er(Rs,g,e)||Ts(t,e,g[e])})),t},Rs=function(t){var e=Br(t),g=Er(vs,this,e);return!(this===ss&&Sr(ms,e)&&!Sr(bs,e))&&(!(g||!Sr(this,e)||!Sr(ms,e)||Sr(this,As)&&this[As][e])||g)},Ss=function(t,e){var g=Mr(t),i=Br(e);if(g!==ss||!Sr(ms,i)||Sr(bs,i)){var n=hs(g,i);return!n||!Sr(ms,i)||Sr(g,As)&&g[As][i]||(n.enumerable=!0),n}},Ns=function(t){var e=ps(Mr(t)),g=[];return ns(e,(function(t){Sr(ms,t)||Sr(Xr,t)||ys(g,t)})),g},Ps=function(t){var e=t===ss,g=ps(e?bs:Mr(t)),i=[];return ns(g,(function(t){!Sr(ms,t)||e&&!Sr(ss,t)||ys(i,ms[t])})),i};Dr||(as=function(){if(Nr(ls,this))throw new us("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?_r(arguments[0]):void 0,e=Jr(t),g=function(t){this===ss&&Er(g,bs,t),Sr(this,As)&&Sr(this[As],e)&&(this[As][e]=!1);var i=zr(1,t);try{Es(this,e,i)}catch(t){if(!(t instanceof cs))throw t;ks(this,e,i)}};return Tr&&xs&&Es(ss,e,{configurable:!0,set:g}),Os(e,t)},Hr(ls=as[Cs],"toString",(function(){return rs(this).tag})),Hr(as,"withoutSetter",(function(t){return Os(Jr(t),t)})),Ur.f=Rs,Yr.f=Ts,Wr.f=Ds,Vr.f=Ss,Lr.f=Zr.f=Ns,Gr.f=Ps,$r.f=function(t){return Os(qr(t),t)},Tr&&Qr(ls,"description",{configurable:!0,get:function(){return rs(this).description}})),xr({global:!0,constructor:!0,wrap:!0,forced:!Dr,sham:!Dr},{Symbol:as}),ns(jr(ws),(function(t){ts(t)})),xr({target:os,stat:!0,forced:!Dr},{useSetter:function(){xs=!0},useSimple:function(){xs=!1}}),xr({target:"Object",stat:!0,forced:!Dr,sham:!Tr},{create:function(t,e){return void 0===e?Fr(t):Ds(Fr(t),e)},defineProperty:Ts,defineProperties:Ds,getOwnPropertyDescriptor:Ss}),xr({target:"Object",stat:!0,forced:!Dr},{getOwnPropertyNames:Ns}),es(),gs(as,os),Xr[As]=!0;var Ms=mt&&!!Symbol.for&&!!Symbol.keyFor,Bs=Tg,_s=It,zs=$t,Fs=In,js=Ht,Ls=Ms,Zs=js("string-to-symbol-registry"),Gs=js("symbol-to-string-registry");Bs({target:"Symbol",stat:!0,forced:!Ls},{for:function(t){var e=Fs(t);if(zs(Zs,e))return Zs[e];var g=_s("Symbol")(e);return Zs[e]=g,Gs[g]=e,g}});var Vs=Tg,Ys=$t,Ws=Ot,Us=Dt,Hs=Ms,Qs=Ht("symbol-to-string-registry");Vs({target:"Symbol",stat:!0,forced:!Hs},{keyFor:function(t){if(!Ws(t))throw new TypeError(Us(t)+" is not a symbol");if(Ys(Qs,t))return Qs[t]}});var Ks=uI,Xs=D,Js=b,qs=In,$s=p([].push),ta=Tg,ea=It,ga=c,ia=M,na=p,Aa=C,oa=D,Ca=Ot,Ia=pi,ra=mt,sa=String,aa=ea("JSON","stringify"),la=na(/./.exec),ca=na("".charAt),ua=na("".charCodeAt),da=na("".replace),ha=na(1..toString),fa=/[\uD800-\uDFFF]/g,pa=/^[\uD800-\uDBFF]$/,va=/^[\uDC00-\uDFFF]$/,ya=!ra||Aa((function(){var t=ea("Symbol")("stringify detection");return"[null]"!==aa([t])||"{}"!==aa({a:t})||"{}"!==aa(Object(t))})),ma=Aa((function(){return'"\\udf06\\ud834"'!==aa("\udf06\ud834")||'"\\udead"'!==aa("\udead")})),ba=function(t,e){var g=Ia(arguments),i=function(t){if(Xs(t))return t;if(Ks(t)){for(var e=t.length,g=[],i=0;i<e;i++){var n=t[i];"string"==typeof n?$s(g,n):"number"!=typeof n&&"Number"!==Js(n)&&"String"!==Js(n)||$s(g,qs(n))}var A=g.length,o=!0;return function(t,e){if(o)return o=!1,e;if(Ks(this))return e;for(var i=0;i<A;i++)if(g[i]===t)return e}}}(e);if(oa(i)||void 0!==t&&!Ca(t))return g[1]=function(t,e){if(oa(i)&&(e=ia(i,this,sa(t),e)),!Ca(e))return e},ga(aa,null,g)},wa=function(t,e,g){var i=ca(g,e-1),n=ca(g,e+1);return la(pa,t)&&!la(va,n)||la(va,t)&&!la(pa,i)?"\\u"+ha(ua(t,0),16):t};aa&&ta({target:"JSON",stat:!0,arity:3,forced:ya||ma},{stringify:function(t,e,g){var i=Ia(arguments),n=ga(ya?ba:aa,null,i);return ma&&"string"==typeof n?da(n,fa,wa):n}});var xa=gi,ka=Xt;Tg({target:"Object",stat:!0,forced:!mt||C((function(){xa.f(1)}))},{getOwnPropertySymbols:function(t){var e=xa.f;return e?e(ka(t)):[]}}),sr("asyncIterator"),sr("hasInstance"),sr("isConcatSpreadable"),sr("iterator"),sr("match"),sr("matchAll"),sr("replace"),sr("search"),sr("species"),sr("split");var Ea=dr;sr("toPrimitive"),Ea();var Oa=It,Ta=WA;sr("toStringTag"),Ta(Oa("Symbol"),"Symbol"),sr("unscopables"),WA(o.JSON,"JSON",!0);var Da=it.Symbol,Ra=ce,Sa=Je.f,Na=Ra("metadata"),Pa=Function.prototype;void 0===Pa[Na]&&Sa(Pa,Na,{value:null}),sr("asyncDispose"),sr("dispose"),sr("metadata");var Ma=Da,Ba=p,_a=It("Symbol"),za=_a.keyFor,Fa=Ba(_a.prototype.valueOf),ja=_a.isRegisteredSymbol||function(t){try{return void 0!==za(Fa(t))}catch(t){return!1}};Tg({target:"Symbol",stat:!0},{isRegisteredSymbol:ja});for(var La=Ht,Za=It,Ga=p,Va=Ot,Ya=ce,Wa=Za("Symbol"),Ua=Wa.isWellKnownSymbol,Ha=Za("Object","getOwnPropertyNames"),Qa=Ga(Wa.prototype.valueOf),Ka=La("wks"),Xa=0,Ja=Ha(Wa),qa=Ja.length;Xa<qa;Xa++)try{var $a=Ja[Xa];Va(Wa[$a])&&Ya($a)}catch(t){}var tl=function(t){if(Ua&&Ua(t))return!0;try{for(var e=Qa(t),g=0,i=Ha(Ka),n=i.length;g<n;g++)if(Ka[i[g]]==e)return!0}catch(t){}return!1};Tg({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:tl}),sr("matcher"),sr("observable"),Tg({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:ja}),Tg({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:tl}),sr("metadataKey"),sr("patternMatch"),sr("replaceAll");var el=n(Ma),gl=n(nr.f("iterator"));function il(t){return il="function"==typeof el&&"symbol"==typeof gl?function(t){return typeof t}:function(t){return t&&"function"==typeof el&&t.constructor===el&&t!==el.prototype?"symbol":typeof t},il(t)}var nl=n(nr.f("toPrimitive"));function Al(t){var e=function(t,e){if("object"!==il(t)||null===t)return t;var g=t[nl];if(void 0!==g){var i=g.call(t,"string");if("object"!==il(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===il(e)?e:String(e)}function ol(t,e){for(var g=0;g<e.length;g++){var i=e[g];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),lI(t,Al(i.key),i)}}function Cl(t,e,g){return e&&ol(t.prototype,e),g&&ol(t,g),lI(t,"prototype",{writable:!1}),t}Tg({target:"Array",stat:!0},{isArray:uI});var Il=it.Array.isArray,rl=n(Il),sl=S,al=uI,ll=TypeError,cl=Object.getOwnPropertyDescriptor,ul=sl&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(al(t)&&!cl(t,"length").writable)throw new ll("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},dl=Xt,hl=jg,fl=ul,pl=hI;Tg({target:"Array",proto:!0,arity:1,forced:C((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=dl(this),g=hl(e),i=arguments.length;pl(g+i);for(var n=0;n<i;n++)e[g]=arguments[n],g++;return fl(e,g),g}});var vl=Ni("Array").push,yl=rt,ml=vl,bl=Array.prototype,wl=n((function(t){var e=t.push;return t===bl||yl(bl,t)&&e===bl.push?ml:e})),xl=Tg,kl=uI,El=iC,Ol=gt,Tl=_g,Dl=jg,Rl=$,Sl=CC,Nl=ce,Pl=pi,Ml=EI("slice"),Bl=Nl("species"),_l=Array,zl=Math.max;xl({target:"Array",proto:!0,forced:!Ml},{slice:function(t,e){var g,i,n,A=Rl(this),o=Dl(A),C=Tl(t,o),I=Tl(void 0===e?o:e,o);if(kl(A)&&(g=A.constructor,(El(g)&&(g===_l||kl(g.prototype))||Ol(g)&&null===(g=g[Bl]))&&(g=void 0),g===_l||void 0===g))return Pl(A,C,I);for(i=new(void 0===g?_l:g)(zl(I-C,0)),n=0;C<I;C++,n++)C in A&&Sl(i,n,A[C]);return i.length=n,i}});var Fl=Ni("Array").slice,jl=rt,Ll=Fl,Zl=Array.prototype,Gl=function(t){var e=t.slice;return t===Zl||jl(Zl,t)&&e===Zl.slice?Ll:e},Vl=n(Gl),Yl=n(_C);function Wl(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function Ul(t,e){var g;if(t){if("string"==typeof t)return Wl(t,e);var i=Vl(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Yl(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Wl(t,e):void 0}}function Hl(t,e){return function(t){if(rl(t))return t}(t)||function(t,e){var g=null==t?null:void 0!==el&&gI(t)||t["@@iterator"];if(null!=g){var i,n,A,o,C=[],I=!0,r=!1;try{if(A=(g=g.call(t)).next,0===e){if(Object(g)!==g)return;I=!1}else for(;!(I=(i=A.call(g)).done)&&(wl(C).call(C,i.value),C.length!==e);I=!0);}catch(t){r=!0,n=t}finally{try{if(!I&&null!=g.return&&(o=g.return(),Object(o)!==o))return}finally{if(r)throw n}}return C}}(t,e)||Ul(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(t){return function(t){if(rl(t))return Wl(t)}(t)||function(t){if(void 0!==el&&null!=gI(t)||null!=t["@@iterator"])return Yl(t)}(t)||Ul(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Kl=n(Da),Xl=Ni("Array").concat,Jl=rt,ql=Xl,$l=Array.prototype,tc=n((function(t){var e=t.concat;return t===$l||Jl($l,t)&&e===$l.concat?ql:e})),ec=n(Gl),gc=It,ic=ZI,nc=gi,Ac=gg,oc=p([].concat),Cc=gc("Reflect","ownKeys")||function(t){var e=ic.f(Ac(t)),g=nc.f;return g?oc(e,g(t)):e},Ic=n(Il),rc=wr.map;Tg({target:"Array",proto:!0,forced:!EI("map")},{map:function(t){return rc(this,t,arguments.length>1?arguments[1]:void 0)}});var sc=Ni("Array").map,ac=rt,lc=sc,cc=Array.prototype,uc=n((function(t){var e=t.map;return t===cc||ac(cc,t)&&e===cc.map?lc:e})),dc=Xt,hc=ei;Tg({target:"Object",stat:!0,forced:C((function(){hc(1)}))},{keys:function(t){return hc(dc(t))}});var fc=n(it.Object.keys),pc=Tg,vc=Date,yc=p(vc.prototype.getTime);pc({target:"Date",stat:!0},{now:function(){return yc(new vc)}});var mc=n(it.Date.now),bc=C,wc=function(t,e){var g=[][t];return!!g&&bc((function(){g.call(null,e||function(){return 1},1)}))},xc=wr.forEach,kc=wc("forEach")?[].forEach:function(t){return xc(this,t,arguments.length>1?arguments[1]:void 0)};Tg({target:"Array",proto:!0,forced:[].forEach!==kc},{forEach:kc});var Ec=Ni("Array").forEach,Oc=An,Tc=$t,Dc=rt,Rc=Ec,Sc=Array.prototype,Nc={DOMTokenList:!0,NodeList:!0},Pc=n((function(t){var e=t.forEach;return t===Sc||Dc(Sc,t)&&e===Sc.forEach||Tc(Nc,Oc(t))?Rc:e})),Mc=Tg,Bc=uI,_c=p([].reverse),zc=[1,2];Mc({target:"Array",proto:!0,forced:String(zc)===String(zc.reverse())},{reverse:function(){return Bc(this)&&(this.length=this.length),_c(this)}});var Fc=Ni("Array").reverse,jc=rt,Lc=Fc,Zc=Array.prototype,Gc=n((function(t){var e=t.reverse;return t===Zc||jc(Zc,t)&&e===Zc.reverse?Lc:e})),Vc=Dt,Yc=TypeError,Wc=function(t,e){if(!delete t[e])throw new Yc("Cannot delete property "+Vc(e)+" of "+Vc(t))},Uc=Tg,Hc=Xt,Qc=_g,Kc=Ng,Xc=jg,Jc=ul,qc=hI,$c=bI,tu=CC,eu=Wc,gu=EI("splice"),iu=Math.max,nu=Math.min;Uc({target:"Array",proto:!0,forced:!gu},{splice:function(t,e){var g,i,n,A,o,C,I=Hc(this),r=Xc(I),s=Qc(t,r),a=arguments.length;for(0===a?g=i=0:1===a?(g=0,i=r-s):(g=a-2,i=nu(iu(Kc(e),0),r-s)),qc(r+g-i),n=$c(I,i),A=0;A<i;A++)(o=s+A)in I&&tu(n,A,I[o]);if(n.length=i,g<i){for(A=s;A<r-i;A++)C=A+g,(o=A+i)in I?I[C]=I[o]:eu(I,C);for(A=r;A>r-i+g;A--)eu(I,A-1)}else if(g>i)for(A=r-i;A>s;A--)C=A+g-1,(o=A+i-1)in I?I[C]=I[o]:eu(I,C);for(A=0;A<g;A++)I[A+s]=arguments[A+2];return Jc(I,r-i+g),n}});var Au=Ni("Array").splice,ou=rt,Cu=Au,Iu=Array.prototype,ru=n((function(t){var e=t.splice;return t===Iu||ou(Iu,t)&&e===Iu.splice?Cu:e})),su=Yg.includes;Tg({target:"Array",proto:!0,forced:C((function(){return!Array(1).includes()}))},{includes:function(t){return su(this,t,arguments.length>1?arguments[1]:void 0)}});var au=Ni("Array").includes,lu=gt,cu=b,uu=ce("match"),du=TypeError,hu=ce("match"),fu=Tg,pu=function(t){if(function(t){var e;return lu(t)&&(void 0!==(e=t[uu])?!!e:"RegExp"===cu(t))}(t))throw new du("The method doesn't accept regular expressions");return t},vu=X,yu=In,mu=p("".indexOf);fu({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(g){try{return e[hu]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~mu(yu(vu(this)),yu(pu(t)),arguments.length>1?arguments[1]:void 0)}});var bu=Ni("String").includes,wu=rt,xu=au,ku=bu,Eu=Array.prototype,Ou=String.prototype,Tu=n((function(t){var e=t.includes;return t===Eu||wu(Eu,t)&&e===Eu.includes?xu:"string"==typeof t||t===Ou||wu(Ou,t)&&e===Ou.includes?ku:e})),Du=Xt,Ru=xA,Su=hA;Tg({target:"Object",stat:!0,forced:C((function(){Ru(1)})),sham:!Su},{getPrototypeOf:function(t){return Ru(Du(t))}});var Nu=it.Object.getPrototypeOf,Pu=n(Nu),Mu=wr.filter;Tg({target:"Array",proto:!0,forced:!EI("filter")},{filter:function(t){return Mu(this,t,arguments.length>1?arguments[1]:void 0)}});var Bu=Ni("Array").filter,_u=rt,zu=Bu,Fu=Array.prototype,ju=n((function(t){var e=t.filter;return t===Fu||_u(Fu,t)&&e===Fu.filter?zu:e})),Lu="\t\n\v\f\r                　\u2028\u2029\ufeff",Zu=X,Gu=In,Vu=Lu,Yu=p("".replace),Wu=RegExp("^["+Vu+"]+"),Uu=RegExp("(^|[^"+Vu+"])["+Vu+"]+$"),Hu=function(t){return function(e){var g=Gu(Zu(e));return 1&t&&(g=Yu(g,Wu,"")),2&t&&(g=Yu(g,Uu,"$1")),g}},Qu={start:Hu(1),end:Hu(2),trim:Hu(3)},Ku=o,Xu=C,Ju=p,qu=In,$u=Qu.trim,td=Lu,ed=Ku.parseInt,gd=Ku.Symbol,id=gd&&gd.iterator,nd=/^[+-]?0x/i,Ad=Ju(nd.exec),od=8!==ed(td+"08")||22!==ed(td+"0x16")||id&&!Xu((function(){ed(Object(id))}))?function(t,e){var g=$u(qu(t));return ed(g,e>>>0||(Ad(nd,g)?16:10))}:ed;Tg({global:!0,forced:parseInt!==od},{parseInt:od});var Cd=n(it.parseInt),Id=Tg,rd=Yg.indexOf,sd=wc,ad=k([].indexOf),ld=!!ad&&1/ad([1],1,-0)<0;Id({target:"Array",proto:!0,forced:ld||!sd("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return ld?ad(this,t,e)||0:rd(this,t,e)}});var cd=Ni("Array").indexOf,ud=rt,dd=cd,hd=Array.prototype,fd=n((function(t){var e=t.indexOf;return t===hd||ud(hd,t)&&e===hd.indexOf?dd:e}));Tg({target:"Object",stat:!0,sham:!S},{create:dA});var pd=it.Object,vd=function(t,e){return pd.create(t,e)},yd=n(vd),md=it,bd=c;md.JSON||(md.JSON={stringify:JSON.stringify});var wd=n((function(t,e,g){return bd(md.JSON.stringify,null,arguments)})),xd="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,kd=TypeError,Ed=o,Od=c,Td=D,Dd=xd,Rd=st,Sd=pi,Nd=Ed.Function,Pd=/MSIE .\./.test(Rd)||Dd&&function(){var t=Ed.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}(),Md=function(t,e){var g=e?2:1;return Pd?function(i,n){var A=function(t,e){if(t<e)throw new kd("Not enough arguments");return t}(arguments.length,1)>g,o=Td(i)?i:Nd(i),C=A?Sd(arguments,g):[],I=A?function(){Od(o,this,C)}:o;return e?t(I,n):t(I)}:t},Bd=Tg,_d=o,zd=Md(_d.setInterval,!0);Bd({global:!0,bind:!0,forced:_d.setInterval!==zd},{setInterval:zd});var Fd=Tg,jd=o,Ld=Md(jd.setTimeout,!0);Fd({global:!0,bind:!0,forced:jd.setTimeout!==Ld},{setTimeout:Ld});var Zd=n(it.setTimeout),Gd=Xt,Vd=_g,Yd=jg;Tg({target:"Array",proto:!0},{fill:function(t){for(var e=Gd(this),g=Yd(e),i=arguments.length,n=Vd(i>1?arguments[1]:void 0,g),A=i>2?arguments[2]:void 0,o=void 0===A?g:Vd(A,g);o>n;)e[n++]=t;return e}});var Wd,Ud=Ni("Array").fill,Hd=rt,Qd=Ud,Kd=Array.prototype,Xd=n((function(t){var e=t.fill;return t===Kd||Hd(Kd,t)&&e===Kd.fill?Qd:e}));function Jd(){return Jd=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var g=arguments[e];for(var i in g)Object.prototype.hasOwnProperty.call(g,i)&&(t[i]=g[i])}return t},Jd.apply(this,arguments)}function qd(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function $d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}Wd="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),g=1;g<arguments.length;g++){var i=arguments[g];if(null!=i)for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}return e}:Object.assign;var th,eh=Wd,gh=["","webkit","Moz","MS","ms","o"],ih="undefined"==typeof document?{style:{}}:document.createElement("div"),nh=Math.round,Ah=Math.abs,oh=Date.now;function Ch(t,e){for(var g,i,n=e[0].toUpperCase()+e.slice(1),A=0;A<gh.length;){if((i=(g=gh[A])?g+n:e)in t)return i;A++}}th="undefined"==typeof window?{}:window;var Ih=Ch(ih.style,"touchAction"),rh=void 0!==Ih,sh="compute",ah="auto",lh="manipulation",ch="none",uh="pan-x",dh="pan-y",hh=function(){if(!rh)return!1;var t={},e=th.CSS&&th.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(g){return t[g]=!e||th.CSS.supports("touch-action",g)})),t}(),fh="ontouchstart"in th,ph=void 0!==Ch(th,"PointerEvent"),vh=fh&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),yh="touch",mh="mouse",bh=25,wh=1,xh=4,kh=8,Eh=1,Oh=2,Th=4,Dh=8,Rh=16,Sh=Oh|Th,Nh=Dh|Rh,Ph=Sh|Nh,Mh=["x","y"],Bh=["clientX","clientY"];function _h(t,e,g){var i;if(t)if(t.forEach)t.forEach(e,g);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(g,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(g,t[i],i,t)}function zh(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Fh(t,e){return t.indexOf(e)>-1}var jh=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===sh&&(t=this.compute()),rh&&this.manager.element.style&&hh[t]&&(this.manager.element.style[Ih]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return _h(this.manager.recognizers,(function(e){zh(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Fh(t,ch))return ch;var e=Fh(t,uh),g=Fh(t,dh);return e&&g?ch:e||g?e?uh:dh:Fh(t,lh)?lh:ah}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,g=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,n=Fh(i,ch)&&!hh[ch],A=Fh(i,dh)&&!hh[dh],o=Fh(i,uh)&&!hh[uh];if(n){var C=1===t.pointers.length,I=t.distance<2,r=t.deltaTime<250;if(C&&I&&r)return}if(!o||!A)return n||A&&g&Sh||o&&g&Nh?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Lh(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Zh(t){var e=t.length;if(1===e)return{x:nh(t[0].clientX),y:nh(t[0].clientY)};for(var g=0,i=0,n=0;n<e;)g+=t[n].clientX,i+=t[n].clientY,n++;return{x:nh(g/e),y:nh(i/e)}}function Gh(t){for(var e=[],g=0;g<t.pointers.length;)e[g]={clientX:nh(t.pointers[g].clientX),clientY:nh(t.pointers[g].clientY)},g++;return{timeStamp:oh(),pointers:e,center:Zh(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Vh(t,e,g){g||(g=Mh);var i=e[g[0]]-t[g[0]],n=e[g[1]]-t[g[1]];return Math.sqrt(i*i+n*n)}function Yh(t,e,g){g||(g=Mh);var i=e[g[0]]-t[g[0]],n=e[g[1]]-t[g[1]];return 180*Math.atan2(n,i)/Math.PI}function Wh(t,e){return t===e?Eh:Ah(t)>=Ah(e)?t<0?Oh:Th:e<0?Dh:Rh}function Uh(t,e,g){return{x:e/t||0,y:g/t||0}}function Hh(t,e,g){var i=g.pointers.length,n=g.changedPointers.length,A=e&wh&&i-n==0,o=e&(xh|kh)&&i-n==0;g.isFirst=!!A,g.isFinal=!!o,A&&(t.session={}),g.eventType=e,function(t,e){var g=t.session,i=e.pointers,n=i.length;g.firstInput||(g.firstInput=Gh(e)),n>1&&!g.firstMultiple?g.firstMultiple=Gh(e):1===n&&(g.firstMultiple=!1);var A=g.firstInput,o=g.firstMultiple,C=o?o.center:A.center,I=e.center=Zh(i);e.timeStamp=oh(),e.deltaTime=e.timeStamp-A.timeStamp,e.angle=Yh(C,I),e.distance=Vh(C,I),function(t,e){var g=e.center,i=t.offsetDelta||{},n=t.prevDelta||{},A=t.prevInput||{};e.eventType!==wh&&A.eventType!==xh||(n=t.prevDelta={x:A.deltaX||0,y:A.deltaY||0},i=t.offsetDelta={x:g.x,y:g.y}),e.deltaX=n.x+(g.x-i.x),e.deltaY=n.y+(g.y-i.y)}(g,e),e.offsetDirection=Wh(e.deltaX,e.deltaY);var r,s,a=Uh(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=a.x,e.overallVelocityY=a.y,e.overallVelocity=Ah(a.x)>Ah(a.y)?a.x:a.y,e.scale=o?(r=o.pointers,Vh((s=i)[0],s[1],Bh)/Vh(r[0],r[1],Bh)):1,e.rotation=o?function(t,e){return Yh(e[1],e[0],Bh)+Yh(t[1],t[0],Bh)}(o.pointers,i):0,e.maxPointers=g.prevInput?e.pointers.length>g.prevInput.maxPointers?e.pointers.length:g.prevInput.maxPointers:e.pointers.length,function(t,e){var g,i,n,A,o=t.lastInterval||e,C=e.timeStamp-o.timeStamp;if(e.eventType!==kh&&(C>bh||void 0===o.velocity)){var I=e.deltaX-o.deltaX,r=e.deltaY-o.deltaY,s=Uh(C,I,r);i=s.x,n=s.y,g=Ah(s.x)>Ah(s.y)?s.x:s.y,A=Wh(I,r),t.lastInterval=e}else g=o.velocity,i=o.velocityX,n=o.velocityY,A=o.direction;e.velocity=g,e.velocityX=i,e.velocityY=n,e.direction=A}(g,e);var l,c=t.element,u=e.srcEvent;Lh(l=u.composedPath?u.composedPath()[0]:u.path?u.path[0]:u.target,c)&&(c=l),e.target=c}(t,g),t.emit("hammer.input",g),t.recognize(g),t.session.prevInput=g}function Qh(t){return t.trim().split(/\s+/g)}function Kh(t,e,g){_h(Qh(e),(function(e){t.addEventListener(e,g,!1)}))}function Xh(t,e,g){_h(Qh(e),(function(e){t.removeEventListener(e,g,!1)}))}function Jh(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var qh=function(){function t(t,e){var g=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){zh(t.options.enable,[t])&&g.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&Kh(this.element,this.evEl,this.domHandler),this.evTarget&&Kh(this.target,this.evTarget,this.domHandler),this.evWin&&Kh(Jh(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Xh(this.element,this.evEl,this.domHandler),this.evTarget&&Xh(this.target,this.evTarget,this.domHandler),this.evWin&&Xh(Jh(this.element),this.evWin,this.domHandler)},t}();function $h(t,e,g){if(t.indexOf&&!g)return t.indexOf(e);for(var i=0;i<t.length;){if(g&&t[i][g]==e||!g&&t[i]===e)return i;i++}return-1}var tf={pointerdown:wh,pointermove:2,pointerup:xh,pointercancel:kh,pointerout:kh},ef={2:yh,3:"pen",4:mh,5:"kinect"},gf="pointerdown",nf="pointermove pointerup pointercancel";th.MSPointerEvent&&!th.PointerEvent&&(gf="MSPointerDown",nf="MSPointerMove MSPointerUp MSPointerCancel");var Af=function(t){function e(){var g,i=e.prototype;return i.evEl=gf,i.evWin=nf,(g=t.apply(this,arguments)||this).store=g.manager.session.pointerEvents=[],g}return qd(e,t),e.prototype.handler=function(t){var e=this.store,g=!1,i=t.type.toLowerCase().replace("ms",""),n=tf[i],A=ef[t.pointerType]||t.pointerType,o=A===yh,C=$h(e,t.pointerId,"pointerId");n&wh&&(0===t.button||o)?C<0&&(e.push(t),C=e.length-1):n&(xh|kh)&&(g=!0),C<0||(e[C]=t,this.callback(this.manager,n,{pointers:e,changedPointers:[t],pointerType:A,srcEvent:t}),g&&e.splice(C,1))},e}(qh);function of(t){return Array.prototype.slice.call(t,0)}function Cf(t,e,g){for(var i=[],n=[],A=0;A<t.length;){var o=e?t[A][e]:t[A];$h(n,o)<0&&i.push(t[A]),n[A]=o,A++}return g&&(i=e?i.sort((function(t,g){return t[e]>g[e]})):i.sort()),i}var If={touchstart:wh,touchmove:2,touchend:xh,touchcancel:kh},rf=function(t){function e(){var g;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(g=t.apply(this,arguments)||this).targetIds={},g}return qd(e,t),e.prototype.handler=function(t){var e=If[t.type],g=sf.call(this,t,e);g&&this.callback(this.manager,e,{pointers:g[0],changedPointers:g[1],pointerType:yh,srcEvent:t})},e}(qh);function sf(t,e){var g,i,n=of(t.touches),A=this.targetIds;if(e&(2|wh)&&1===n.length)return A[n[0].identifier]=!0,[n,n];var o=of(t.changedTouches),C=[],I=this.target;if(i=n.filter((function(t){return Lh(t.target,I)})),e===wh)for(g=0;g<i.length;)A[i[g].identifier]=!0,g++;for(g=0;g<o.length;)A[o[g].identifier]&&C.push(o[g]),e&(xh|kh)&&delete A[o[g].identifier],g++;return C.length?[Cf(i.concat(C),"identifier",!0),C]:void 0}var af={mousedown:wh,mousemove:2,mouseup:xh},lf=function(t){function e(){var g,i=e.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(g=t.apply(this,arguments)||this).pressed=!1,g}return qd(e,t),e.prototype.handler=function(t){var e=af[t.type];e&wh&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=xh),this.pressed&&(e&xh&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:mh,srcEvent:t}))},e}(qh),cf=2500;function uf(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var g={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(g),setTimeout((function(){var t=i.indexOf(g);t>-1&&i.splice(t,1)}),cf)}}function df(t,e){t&wh?(this.primaryTouch=e.changedPointers[0].identifier,uf.call(this,e)):t&(xh|kh)&&uf.call(this,e)}function hf(t){for(var e=t.srcEvent.clientX,g=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],A=Math.abs(e-n.x),o=Math.abs(g-n.y);if(A<=25&&o<=25)return!0}return!1}var ff=function(t){function e(e,g){var i;return(i=t.call(this,e,g)||this).handler=function(t,e,g){var n=g.pointerType===yh,A=g.pointerType===mh;if(!(A&&g.sourceCapabilities&&g.sourceCapabilities.firesTouchEvents)){if(n)df.call($d($d(i)),e,g);else if(A&&hf.call($d($d(i)),g))return;i.callback(t,e,g)}},i.touch=new rf(i.manager,i.handler),i.mouse=new lf(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return qd(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(qh);function pf(t,e,g){return!!Array.isArray(t)&&(_h(t,g[e],g),!0)}var vf=32,yf=1;function mf(t,e){var g=e.manager;return g?g.get(t):t}function bf(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var wf=function(){function t(t){void 0===t&&(t={}),this.options=Jd({enable:!0},t),this.id=yf++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return eh(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(pf(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=mf(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return pf(t,"dropRecognizeWith",this)||(t=mf(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(pf(t,"requireFailure",this))return this;var e=this.requireFail;return-1===$h(e,t=mf(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(pf(t,"dropRequireFailure",this))return this;t=mf(t,this);var e=$h(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,g=this.state;function i(g){e.manager.emit(g,t)}g<8&&i(e.options.event+bf(g)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),g>=8&&i(e.options.event+bf(g))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=vf},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=eh({},t);if(!zh(this.options.enable,[this,e]))return this.reset(),void(this.state=vf);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),xf=function(t){function e(e){var g;return void 0===e&&(e={}),(g=t.call(this,Jd({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,g.pCenter=!1,g._timer=null,g._input=null,g.count=0,g}qd(e,t);var g=e.prototype;return g.getTouchAction=function(){return[lh]},g.process=function(t){var e=this,g=this.options,i=t.pointers.length===g.pointers,n=t.distance<g.threshold,A=t.deltaTime<g.time;if(this.reset(),t.eventType&wh&&0===this.count)return this.failTimeout();if(n&&A&&i){if(t.eventType!==xh)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<g.interval,C=!this.pCenter||Vh(this.pCenter,t.center)<g.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,C&&o?this.count+=1:this.count=1,this._input=t,0==this.count%g.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),g.interval),2):8}return vf},g.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=vf}),this.options.interval),vf},g.reset=function(){clearTimeout(this._timer)},g.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(wf),kf=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Jd({pointers:1},e))||this}qd(e,t);var g=e.prototype;return g.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},g.process=function(t){var e=this.state,g=t.eventType,i=6&e,n=this.attrTest(t);return i&&(g&kh||!n)?16|e:i||n?g&xh?8|e:2&e?4|e:2:vf},e}(wf);function Ef(t){return t===Rh?"down":t===Dh?"up":t===Oh?"left":t===Th?"right":""}var Of=function(t){function e(e){var g;return void 0===e&&(e={}),(g=t.call(this,Jd({event:"pan",threshold:10,pointers:1,direction:Ph},e))||this).pX=null,g.pY=null,g}qd(e,t);var g=e.prototype;return g.getTouchAction=function(){var t=this.options.direction,e=[];return t&Sh&&e.push(dh),t&Nh&&e.push(uh),e},g.directionTest=function(t){var e=this.options,g=!0,i=t.distance,n=t.direction,A=t.deltaX,o=t.deltaY;return n&e.direction||(e.direction&Sh?(n=0===A?Eh:A<0?Oh:Th,g=A!==this.pX,i=Math.abs(t.deltaX)):(n=0===o?Eh:o<0?Dh:Rh,g=o!==this.pY,i=Math.abs(t.deltaY))),t.direction=n,g&&i>e.threshold&&n&e.direction},g.attrTest=function(t){return kf.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},g.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var g=Ef(e.direction);g&&(e.additionalEvent=this.options.event+g),t.prototype.emit.call(this,e)},e}(kf),Tf=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Jd({event:"swipe",threshold:10,velocity:.3,direction:Sh|Nh,pointers:1},e))||this}qd(e,t);var g=e.prototype;return g.getTouchAction=function(){return Of.prototype.getTouchAction.call(this)},g.attrTest=function(e){var g,i=this.options.direction;return i&(Sh|Nh)?g=e.overallVelocity:i&Sh?g=e.overallVelocityX:i&Nh&&(g=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Ah(g)>this.options.velocity&&e.eventType&xh},g.emit=function(t){var e=Ef(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(kf),Df=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Jd({event:"pinch",threshold:0,pointers:2},e))||this}qd(e,t);var g=e.prototype;return g.getTouchAction=function(){return[ch]},g.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},g.emit=function(e){if(1!==e.scale){var g=e.scale<1?"in":"out";e.additionalEvent=this.options.event+g}t.prototype.emit.call(this,e)},e}(kf),Rf=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Jd({event:"rotate",threshold:0,pointers:2},e))||this}qd(e,t);var g=e.prototype;return g.getTouchAction=function(){return[ch]},g.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(kf),Sf=function(t){function e(e){var g;return void 0===e&&(e={}),(g=t.call(this,Jd({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,g._input=null,g}qd(e,t);var g=e.prototype;return g.getTouchAction=function(){return[ah]},g.process=function(t){var e=this,g=this.options,i=t.pointers.length===g.pointers,n=t.distance<g.threshold,A=t.deltaTime>g.time;if(this._input=t,!n||!i||t.eventType&(xh|kh)&&!A)this.reset();else if(t.eventType&wh)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),g.time);else if(t.eventType&xh)return 8;return vf},g.reset=function(){clearTimeout(this._timer)},g.emit=function(t){8===this.state&&(t&&t.eventType&xh?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=oh(),this.manager.emit(this.options.event,this._input)))},e}(wf),Nf={domEvents:!1,touchAction:sh,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Pf=[[Rf,{enable:!1}],[Df,{enable:!1},["rotate"]],[Tf,{direction:Sh}],[Of,{direction:Sh},["swipe"]],[xf],[xf,{event:"doubletap",taps:2},["tap"]],[Sf]];function Mf(t,e){var g,i=t.element;i.style&&(_h(t.options.cssProps,(function(n,A){g=Ch(i.style,A),e?(t.oldCssProps[g]=i.style[g],i.style[g]=n):i.style[g]=t.oldCssProps[g]||""})),e||(t.oldCssProps={}))}var Bf=function(){function t(t,e){var g=this;this.options=eh({},Nf,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(ph?Af:vh?rf:fh?ff:lf))(this,Hh),this.touchAction=new jh(this,this.options.touchAction),Mf(this,!0),_h(this.options.recognizers,(function(t){var e=g.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return eh(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var g;this.touchAction.preventDefaults(t);var i=this.recognizers,n=e.curRecognizer;(!n||n&&8&n.state)&&(e.curRecognizer=null,n=null);for(var A=0;A<i.length;)g=i[A],2===e.stopped||n&&g!==n&&!g.canRecognizeWith(n)?g.reset():g.recognize(t),!n&&14&g.state&&(e.curRecognizer=g,n=g),A++}},e.get=function(t){if(t instanceof wf)return t;for(var e=this.recognizers,g=0;g<e.length;g++)if(e[g].options.event===t)return e[g];return null},e.add=function(t){if(pf(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(pf(t,"remove",this))return this;var e=this.get(t);if(t){var g=this.recognizers,i=$h(g,e);-1!==i&&(g.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var g=this.handlers;return _h(Qh(t),(function(t){g[t]=g[t]||[],g[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var g=this.handlers;return _h(Qh(t),(function(t){e?g[t]&&g[t].splice($h(g[t],e),1):delete g[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var g=document.createEvent("Event");g.initEvent(t,!0,!0),g.gesture=e,e.target.dispatchEvent(g)}(t,e);var g=this.handlers[t]&&this.handlers[t].slice();if(g&&g.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<g.length;)g[i](e),i++}},e.destroy=function(){this.element&&Mf(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),_f={touchstart:wh,touchmove:2,touchend:xh,touchcancel:kh},zf=function(t){function e(){var g,i=e.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(g=t.apply(this,arguments)||this).started=!1,g}return qd(e,t),e.prototype.handler=function(t){var e=_f[t.type];if(e===wh&&(this.started=!0),this.started){var g=Ff.call(this,t,e);e&(xh|kh)&&g[0].length-g[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:g[0],changedPointers:g[1],pointerType:yh,srcEvent:t})}},e}(qh);function Ff(t,e){var g=of(t.touches),i=of(t.changedTouches);return e&(xh|kh)&&(g=Cf(g.concat(i),"identifier",!0)),[g,i]}function jf(t,e,g){var i="DEPRECATED METHOD: "+e+"\n"+g+" AT \n";return function(){var e=new Error("get-stack-trace"),g=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=window.console&&(window.console.warn||window.console.log);return n&&n.call(window.console,i,g),t.apply(this,arguments)}}var Lf=jf((function(t,e,g){for(var i=Object.keys(e),n=0;n<i.length;)(!g||g&&void 0===t[i[n]])&&(t[i[n]]=e[i[n]]),n++;return t}),"extend","Use `assign`."),Zf=jf((function(t,e){return Lf(t,e,!0)}),"merge","Use `assign`.");function Gf(t,e,g){var i,n=e.prototype;(i=t.prototype=Object.create(n)).constructor=t,i._super=n,g&&eh(i,g)}function Vf(t,e){return function(){return t.apply(e,arguments)}}var Yf=function(){var t=function(t,e){return void 0===e&&(e={}),new Bf(t,Jd({recognizers:Pf.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=Ph,t.DIRECTION_DOWN=Rh,t.DIRECTION_LEFT=Oh,t.DIRECTION_RIGHT=Th,t.DIRECTION_UP=Dh,t.DIRECTION_HORIZONTAL=Sh,t.DIRECTION_VERTICAL=Nh,t.DIRECTION_NONE=Eh,t.DIRECTION_DOWN=Rh,t.INPUT_START=wh,t.INPUT_MOVE=2,t.INPUT_END=xh,t.INPUT_CANCEL=kh,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=vf,t.Manager=Bf,t.Input=qh,t.TouchAction=jh,t.TouchInput=rf,t.MouseInput=lf,t.PointerEventInput=Af,t.TouchMouseInput=ff,t.SingleTouchInput=zf,t.Recognizer=wf,t.AttrRecognizer=kf,t.Tap=xf,t.Pan=Of,t.Swipe=Tf,t.Pinch=Df,t.Rotate=Rf,t.Press=Sf,t.on=Kh,t.off=Xh,t.each=_h,t.merge=Zf,t.extend=Lf,t.bindFn=Vf,t.assign=eh,t.inherit=Gf,t.bindFn=Vf,t.prefixed=Ch,t.toArray=of,t.inArray=$h,t.uniqueArray=Cf,t.splitStr=Qh,t.boolOrFn=zh,t.hasParent=Lh,t.addEventListeners=Kh,t.removeEventListeners=Xh,t.defaults=eh({},Nf,{preset:Pf}),t}();Yf.defaults;var Wf=Yf;function Uf(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return Hf(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Hf(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function Hf(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function Qf(){for(var t=arguments.length,e=new Array(t),g=0;g<t;g++)e[g]=arguments[g];return function(t){var e=function(){for(var t=function(){var t=4022871197;return function(e){for(var g=e.toString(),i=0;i<g.length;i++){var n=.02519603282416938*(t+=g.charCodeAt(i));n-=t=n>>>0,t=(n*=t)>>>0,t+=4294967296*(n-=t)}return 2.3283064365386963e-10*(t>>>0)}}(),e=t(" "),g=t(" "),i=t(" "),n=0;n<arguments.length;n++)(e-=t(n<0||arguments.length<=n?void 0:arguments[n]))<0&&(e+=1),(g-=t(n<0||arguments.length<=n?void 0:arguments[n]))<0&&(g+=1),(i-=t(n<0||arguments.length<=n?void 0:arguments[n]))<0&&(i+=1);return[e,g,i]}(t),g=Hl(e,3),i=g[0],n=g[1],A=g[2],o=1,C=function(){var t=2091639*i+2.3283064365386963e-10*o;return i=n,n=A,A=t-(o=0|t)};return C.uint32=function(){return 4294967296*C()},C.fract53=function(){return C()+11102230246251565e-32*(2097152*C()|0)},C.algorithm="Alea",C.seed=t,C.version="0.9",C}(e.length?e:[mc()])}Kl("DELETE");var Kf="undefined"!=typeof window?window.Hammer||Wf:function(){return function(){var t=function(){};return{on:t,off:t,destroy:t,emit:t,get:function(){return{set:t}}}}()};function Xf(t){var e,g=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){g._dom.overlay.parentNode.removeChild(g._dom.overlay)}));var i=Kf(this._dom.overlay);i.on("tap",Fi(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){i.destroy()}));var n=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Pc(n).call(n,(function(t){i.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||g.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",g._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&g.deactivate()}}Ui(Xf.prototype),Xf.current=null,Xf.prototype.destroy=function(){var t,e;this.deactivate();var g,i=Uf(Gc(t=ru(e=this._cleanupQueue).call(e,0)).call(t));try{for(i.s();!(g=i.n()).done;)(0,g.value)()}catch(t){i.e(t)}finally{i.f()}},Xf.prototype.activate=function(){Xf.current&&Xf.current.deactivate(),Xf.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Xf.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Xf.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Jf=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qf=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$f=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,tp=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function ep(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(ep(e),t.removeChild(e))}}function gp(t){return t instanceof String||"string"==typeof t}function ip(t){return"object"===il(t)&&null!==t}function np(t,e,g,i){var n=!1;!0===i&&(n=null===e[g]&&void 0!==t[g]),n?delete t[g]:t[g]=e[g]}function Ap(t,e){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in t)if(void 0!==e[i])if(null===e[i]||"object"!==il(e[i]))np(t,e,i,g);else{var n=t[i],A=e[i];ip(n)&&ip(A)&&Ap(n,A,g)}}function op(t,e,g){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Ic(g))throw new TypeError("Arrays are not supported by deepExtend");for(var n=0;n<t.length;n++){var A=t[n];if(Object.prototype.hasOwnProperty.call(g,A))if(g[A]&&g[A].constructor===Object)void 0===e[A]&&(e[A]={}),e[A].constructor===Object?Ip(e[A],g[A],!1,i):np(e,g,A,i);else{if(Ic(g[A]))throw new TypeError("Arrays are not supported by deepExtend");np(e,g,A,i)}}return e}function Cp(t,e,g){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Ic(g))throw new TypeError("Arrays are not supported by deepExtend");for(var n in g)if(Object.prototype.hasOwnProperty.call(g,n)&&!Tu(t).call(t,n))if(g[n]&&g[n].constructor===Object)void 0===e[n]&&(e[n]={}),e[n].constructor===Object?Ip(e[n],g[n]):np(e,g,n,i);else if(Ic(g[n])){e[n]=[];for(var A=0;A<g[n].length;A++)e[n].push(g[n][A])}else np(e,g,n,i);return e}function Ip(t,e){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)||!0===g)if("object"===il(e[n])&&null!==e[n]&&Pu(e[n])===Object.prototype)void 0===t[n]?t[n]=Ip({},e[n],g):"object"===il(t[n])&&null!==t[n]&&Pu(t[n])===Object.prototype?Ip(t[n],e[n],g):np(t,e,n,i);else if(Ic(e[n])){var A;t[n]=ec(A=e[n]).call(A)}else np(t,e,n,i);return t}function rp(t,e){var g;return tc(g=[]).call(g,Ql(t),[e])}function sp(t){return t.getBoundingClientRect().top}function ap(t,e){if(Ic(t))for(var g=t.length,i=0;i<g;i++)e(t[i],i,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)}function lp(t){var e;switch(t.length){case 3:case 4:return(e=qf.exec(t))?{r:Cd(e[1]+e[1],16),g:Cd(e[2]+e[2],16),b:Cd(e[3]+e[3],16)}:null;case 6:case 7:return(e=Jf.exec(t))?{r:Cd(e[1],16),g:Cd(e[2],16),b:Cd(e[3],16)}:null;default:return null}}function cp(t,e){if(Tu(t).call(t,"rgba"))return t;if(Tu(t).call(t,"rgb")){var g=t.substr(fd(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+g[0]+","+g[1]+","+g[2]+","+e+")"}var i=lp(t);return null==i?t:"rgba("+i.r+","+i.g+","+i.b+","+e+")"}function up(t,e,g){var i;return"#"+ec(i=((1<<24)+(t<<16)+(e<<8)+g).toString(16)).call(i,1)}function dp(t,e){if(gp(t)){var g=t;if(yp(g)){var i,n=uc(i=g.substr(4).substr(0,g.length-5).split(",")).call(i,(function(t){return Cd(t)}));g=up(n[0],n[1],n[2])}if(!0===vp(g)){var A=function(t){var e=lp(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return hp(e.r,e.g,e.b)}(g),o={h:A.h,s:.8*A.s,v:Math.min(1,1.02*A.v)},C={h:A.h,s:Math.min(1,1.25*A.s),v:.8*A.v},I=pp(C.h,C.s,C.v),r=pp(o.h,o.s,o.v);return{background:g,border:I,highlight:{background:r,border:I},hover:{background:r,border:I}}}return{background:g,border:g,highlight:{background:g,border:g},hover:{background:g,border:g}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:gp(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||e.highlight.background,border:t.highlight&&t.highlight.border||e.highlight.border},hover:gp(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||e.hover.border,background:t.hover&&t.hover.background||e.hover.background}}:{background:t.background||void 0,border:t.border||void 0,highlight:gp(t.highlight)?{border:t.highlight,background:t.highlight}:{background:t.highlight&&t.highlight.background||void 0,border:t.highlight&&t.highlight.border||void 0},hover:gp(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}}function hp(t,e,g){t/=255,e/=255,g/=255;var i=Math.min(t,Math.min(e,g)),n=Math.max(t,Math.max(e,g));return i===n?{h:0,s:0,v:i}:{h:60*((t===i?3:g===i?1:5)-(t===i?e-g:g===i?t-e:g-t)/(n-i))/360,s:(n-i)/n,v:n}}function fp(t,e,g){var i,n,A,o=Math.floor(6*t),C=6*t-o,I=g*(1-e),r=g*(1-C*e),s=g*(1-(1-C)*e);switch(o%6){case 0:i=g,n=s,A=I;break;case 1:i=r,n=g,A=I;break;case 2:i=I,n=g,A=s;break;case 3:i=I,n=r,A=g;break;case 4:i=s,n=I,A=g;break;case 5:i=g,n=I,A=r}return{r:Math.floor(255*i),g:Math.floor(255*n),b:Math.floor(255*A)}}function pp(t,e,g){var i=fp(t,e,g);return up(i.r,i.g,i.b)}function vp(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function yp(t){return $f.test(t)}function mp(t){if(null===t||"object"!==il(t))return null;if(t instanceof Element)return t;var e=yd(t);for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&"object"==il(t[g])&&(e[g]=mp(t[g]));return e}function bp(t,e,g){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=function(t){return null!=t},A=function(t){return null!==t&&"object"===il(t)};if(!A(t))throw new Error("Parameter mergeTarget must be an object");if(!A(e))throw new Error("Parameter options must be an object");if(!n(g))throw new Error("Parameter option must have a value");if(!A(i))throw new Error("Parameter globalOptions must be an object");var o=e[g],C=A(i)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(i)?i[g]:void 0,I=C?C.enabled:void 0;if(void 0!==o){if("boolean"==typeof o)return A(t[g])||(t[g]={}),void(t[g].enabled=o);if(null===o&&!A(t[g])){if(!n(C))return;t[g]=yd(C)}if(A(o)){var r=!0;void 0!==o.enabled?r=o.enabled:void 0!==I&&(r=C.enabled),function(t,e,g){A(t[g])||(t[g]={});var i=e[g],n=t[g];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}(t,e,g),t[g].enabled=r}}}var wp={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};function xp(t,e){var g;Ic(e)||(e=[e]);var i,n=Uf(t);try{for(n.s();!(i=n.n()).done;){var A=i.value;if(A){g=A[e[0]];for(var o=1;o<e.length;o++)g&&(g=g[e[o]]);if(void 0!==g)break}}}catch(t){n.e(t)}finally{n.f()}return g}var kp={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Ep=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;nI(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return Cl(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return kp[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var g,i=this._isColorString(t);if(void 0!==i&&(t=i),!0===gp(t)){if(!0===yp(t)){var n=t.substr(4).substr(0,t.length-5).split(",");g={r:n[0],g:n[1],b:n[2],a:1}}else if(!0===function(t){return tp.test(t)}(t)){var A=t.substr(5).substr(0,t.length-6).split(",");g={r:A[0],g:A[1],b:A[2],a:A[3]}}else if(!0===vp(t)){var o=lp(t);g={r:o.r,g:o.g,b:o.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var C=void 0!==t.a?t.a:"1.0";g={r:t.r,g:t.g,b:t.b,a:C}}if(void 0===g)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+wd(t));this._setColor(g,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=fi({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Zd((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=fi({},t)),this.color=t;var e=hp(t.r,t.g,t.b),g=2*Math.PI,i=this.r*e.s,n=this.centerCoordinates.x+i*Math.sin(g*e.h),A=this.centerCoordinates.y+i*Math.cos(g*e.h);this.colorPickerSelector.style.left=n-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=A-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=hp(this.color.r,this.color.g,this.color.b);e.v=t/100;var g=fp(e.h,e.s,e.v);g.a=this.color.a,this.color=g,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=hp(t.r,t.g,t.b),g=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1)),g.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;g.clearRect(0,0,i,n),g.putImageData(this.hueCircle,0,0),g.fillStyle="rgba(0,0,0,"+(1-e.v)+")",g.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Xd(g).call(g),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,g,i;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var n=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var A=document.createElement("DIV");A.style.color="red",A.style.fontWeight="bold",A.style.padding="10px",A.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(A)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var o=this;this.opacityRange.onchange=function(){o._setOpacity(this.value)},this.opacityRange.oninput=function(){o._setOpacity(this.value)},this.brightnessRange.onchange=function(){o._setBrightness(this.value)},this.brightnessRange.oninput=function(){o._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=Fi(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=Fi(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=Fi(g=this._save).call(g,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=Fi(i=this._loadLast).call(i,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Kf(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(e){e.isFirst&&t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,g,i,n,A=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,A,o),this.centerCoordinates={x:.5*A,y:.5*o},this.r=.49*A;var C,I=2*Math.PI/360,r=1/this.r;for(i=0;i<360;i++)for(n=0;n<this.r;n++)e=this.centerCoordinates.x+n*Math.sin(I*i),g=this.centerCoordinates.y+n*Math.cos(I*i),C=fp(.002777777777777778*i,n*r,1),t.fillStyle="rgb("+C.r+","+C.g+","+C.b+")",t.fillRect(e-.5,g-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,A,o)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),g=t.center.x-e.left,i=t.center.y-e.top,n=.5*this.colorPickerDiv.clientHeight,A=.5*this.colorPickerDiv.clientWidth,o=g-A,C=i-n,I=Math.atan2(o,C),r=.98*Math.min(Math.sqrt(o*o+C*C),A),s=Math.cos(I)*r+n,a=Math.sin(I)*r+A;this.colorPickerSelector.style.top=s-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=a-.5*this.colorPickerSelector.clientWidth+"px";var l=I/(2*Math.PI);l=l<0?l+1:l;var c=r/this.r,u=hp(this.color.r,this.color.g,this.color.b);u.h=l,u.s=c;var d=fp(u.h,u.s,u.v);d.a=this.color.a,this.color=d,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}();function Op(){for(var t=arguments.length,e=new Array(t),g=0;g<t;g++)e[g]=arguments[g];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);var i=document.createElement(e[0]);return i.appendChild(Op.apply(void 0,Ql(ec(e).call(e,1)))),i}var Tp,Dp=function(){function t(e,g,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,A=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};nI(this,t),this.parent=e,this.changedOptions=[],this.container=g,this.allowCreation=!1,this.hideOption=A,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},fi(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Ep(n),this.wrapper=void 0}return Cl(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(Ic(t))this.options.filter=t.join();else if("object"===il(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==ju(t)&&(this.options.filter=ju(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===ju(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=ju(this.options),e=0,g=!1;for(var i in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,i)&&(this.allowCreation=!1,g=!1,"function"==typeof t?g=(g=t(i,[]))||this._handleObject(this.configureOptions[i],[i],!0):!0!==t&&-1===fd(t).call(t,i)||(g=!0),!1!==g&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(i),this._handleObject(this.configureOptions[i],[i])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,g=0;g<t.length;g++){if(void 0===e[t[g]]){e=void 0;break}e=e[t[g]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var g=arguments.length,i=new Array(g>1?g-1:0),n=1;n<g;n++)i[n-1]=arguments[n];return Pc(i).call(i,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");if(i.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===g){for(;i.firstChild;)i.removeChild(i.firstChild);i.appendChild(Op("i","b",t))}else i.innerText=t+":";return i}},{key:"_makeDropdown",value:function(t,e,g){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var n=0;void 0!==e&&-1!==fd(t).call(t,e)&&(n=fd(t).call(t,e));for(var A=0;A<t.length;A++){var o=document.createElement("option");o.value=t[A],A===n&&(o.selected="selected"),o.innerText=t[A],i.appendChild(o)}var C=this;i.onchange=function(){C._update(this.value,g)};var I=this._makeLabel(g[g.length-1],g);this._makeItem(g,I,i)}},{key:"_makeRange",value:function(t,e,g){var i=t[0],n=t[1],A=t[2],o=t[3],C=document.createElement("input");C.className="vis-configuration vis-config-range";try{C.type="range",C.min=n,C.max=A}catch(t){}C.step=o;var I="",r=0;if(void 0!==e){var s=1.2;e<0&&e*s<n?(C.min=Math.ceil(e*s),r=C.min,I="range increased"):e/s<n&&(C.min=Math.ceil(e/s),r=C.min,I="range increased"),e*s>A&&1!==A&&(C.max=Math.ceil(e*s),r=C.max,I="range increased"),C.value=e}else C.value=i;var a=document.createElement("input");a.className="vis-configuration vis-config-rangeinput",a.value=C.value;var l=this;C.onchange=function(){a.value=this.value,l._update(Number(this.value),g)},C.oninput=function(){a.value=this.value};var c=this._makeLabel(g[g.length-1],g),u=this._makeItem(g,c,C,a);""!==I&&this.popupHistory[u]!==r&&(this.popupHistory[u]=r,this._setupPopup(I,u))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var g=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerText=t,i.onclick=function(){g._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Zd((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=Zd((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,g){var i=document.createElement("input");i.type="checkbox",i.className="vis-configuration vis-config-checkbox",i.checked=t,void 0!==e&&(i.checked=e,e!==t&&("object"===il(t)?e!==t.enabled&&this.changedOptions.push({path:g,value:e}):this.changedOptions.push({path:g,value:e})));var n=this;i.onchange=function(){n._update(this.checked,g)};var A=this._makeLabel(g[g.length-1],g);this._makeItem(g,A,i)}},{key:"_makeTextInput",value:function(t,e,g){var i=document.createElement("input");i.type="text",i.className="vis-configuration vis-config-text",i.value=e,e!==t&&this.changedOptions.push({path:g,value:e});var n=this;i.onchange=function(){n._update(this.value,g)};var A=this._makeLabel(g[g.length-1],g);this._makeItem(g,A,i)}},{key:"_makeColorField",value:function(t,e,g){var i=this,n=t[1],A=document.createElement("div");"none"!==(e=void 0===e?n:e)?(A.className="vis-configuration vis-config-colorBlock",A.style.backgroundColor=e):A.className="vis-configuration vis-config-colorBlock none",e=void 0===e?n:e,A.onclick=function(){i._showColorPicker(e,A,g)};var o=this._makeLabel(g[g.length-1],g);this._makeItem(g,o,A)}},{key:"_showColorPicker",value:function(t,e,g){var i=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var n="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=n,i._update(n,g)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){i._showColorPicker(t,e,g)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,n=ju(this.options),A=!1;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){i=!0;var C=t[o],I=rp(e,o);if("function"==typeof n&&!1===(i=n(o,e))&&!Ic(C)&&"string"!=typeof C&&"boolean"!=typeof C&&C instanceof Object&&(this.allowCreation=!1,i=this._handleObject(C,I,!0),this.allowCreation=!1===g),!1!==i){A=!0;var r=this._getValue(I);if(Ic(C))this._handleArray(C,r,I);else if("string"==typeof C)this._makeTextInput(C,r,I);else if("boolean"==typeof C)this._makeCheckbox(C,r,I);else if(C instanceof Object){if(!this.hideOption(e,o,this.moduleOptions))if(void 0!==C.enabled){var s=rp(I,"enabled"),a=this._getValue(s);if(!0===a){var l=this._makeLabel(o,I,!0);this._makeItem(I,l),A=this._handleObject(C,I)||A}else this._makeCheckbox(C,a,I)}else{var c=this._makeLabel(o,I,!0);this._makeItem(I,c),A=this._handleObject(C,I)||A}}else console.error("dont know how to handle",C,o,I)}}return A}},{key:"_handleArray",value:function(t,e,g){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,g),t[1]!==e&&this.changedOptions.push({path:g,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,g),t[0]!==e&&this.changedOptions.push({path:g,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,g),t[0]!==e&&this.changedOptions.push({path:g,value:Number(e)}))}},{key:"_update",value:function(t,e){var g=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",g),this.initialized=!0,this.parent.setOptions(g)}},{key:"_constructOptions",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=g;t="false"!==(t="true"===t||t)&&t;for(var n=0;n<e.length;n++)"global"!==e[n]&&(void 0===i[e[n]]&&(i[e[n]]={}),n!==e.length-1?i=i[e[n]]:i[e[n]]=t);return g}},{key:"_printOptions",value:function(){for(var t=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Op("pre","const options = "+wd(t,null,2)))}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),Rp=function(){function t(e,g){nI(this,t),this.container=e,this.overflowMethod=g||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return Cl(t,[{key:"setPosition",value:function(t,e){this.x=Cd(t),this.y=Cd(e)}},{key:"setText",value:function(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,g=this.frame.clientWidth,i=this.frame.parentNode.clientHeight,n=this.frame.parentNode.clientWidth,A=0,o=0;if("flip"==this.overflowMethod){var C=!1,I=!0;this.y-e<this.padding&&(I=!1),this.x+g>n-this.padding&&(C=!0),A=C?this.x-g:this.x,o=I?this.y-e:this.y}else(o=this.y-e)+e+this.padding>i&&(o=i-e-this.padding),o<this.padding&&(o=this.padding),(A=this.x)+g+this.padding>n&&(A=n-g-this.padding),A<this.padding&&(A=this.padding);this.frame.style.left=A+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),Sp=!1,Np="background: #FFeeee; color: #dd0000",Pp=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"validate",value:function(e,g,i){Sp=!1,Tp=g;var n=g;return void 0!==i&&(n=g[i]),t.parse(e,n,[]),Sp}},{key:"parse",value:function(e,g,i){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.check(n,e,g,i)}},{key:"check",value:function(e,g,i,n){if(void 0!==i[e]||void 0!==i.__any__){var A=e,o=!0;void 0===i[e]&&void 0!==i.__any__&&(A="__any__",o="object"===t.getType(g[e]));var C=i[A];o&&void 0!==C.__type__&&(C=C.__type__),t.checkFields(e,g,i,A,C,n)}else t.getSuggestion(e,i,n)}},{key:"checkFields",value:function(e,g,i,n,A,o){var C=function(g){console.error("%c"+g+t.printLocation(o,e),Np)},I=t.getType(g[e]),r=A[I];void 0!==r?"array"===t.getType(r)&&-1===fd(r).call(r,g[e])?(C('Invalid option detected in "'+e+'". Allowed values are:'+t.print(r)+' not "'+g[e]+'". '),Sp=!0):"object"===I&&"__any__"!==n&&(o=rp(o,e),t.parse(g[e],i[n],o)):void 0===A.any&&(C('Invalid type received for "'+e+'". Expected: '+t.print(fc(A))+". Received ["+I+'] "'+g[e]+'"'),Sp=!0)}},{key:"getType",value:function(t){var e=il(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Ic(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,g,i){var n,A=t.findInOptions(e,g,i,!1),o=t.findInOptions(e,Tp,[],!0);n=void 0!==A.indexMatch?" in "+t.printLocation(A.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+A.indexMatch+'"?\n\n':o.distance<=4&&A.distance>o.distance?" in "+t.printLocation(A.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(o.path,o.closestMatch,""):A.distance<=8?'. Did you mean "'+A.closestMatch+'"?'+t.printLocation(A.path,e):". Did you mean one of these: "+t.print(fc(g))+t.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+n,Np),Sp=!0}},{key:"findInOptions",value:function(e,g,i){var n,A=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,C="",I=[],r=e.toLowerCase(),s=void 0;for(var a in g){var l=void 0;if(void 0!==g[a].__type__&&!0===A){var c=t.findInOptions(e,g[a],rp(i,a));o>c.distance&&(C=c.closestMatch,I=c.path,o=c.distance,s=c.indexMatch)}else{var u;-1!==fd(u=a.toLowerCase()).call(u,r)&&(s=a),o>(l=t.levenshteinDistance(e,a))&&(C=a,I=ec(n=i).call(n),o=l)}}return{closestMatch:C,path:I,distance:o,indexMatch:s}}},{key:"printLocation",value:function(t,e){for(var g="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",i=0;i<t.length;i++){for(var n=0;n<i+1;n++)g+="  ";g+=t[i]+": {\n"}for(var A=0;A<t.length+1;A++)g+="  ";g+=e+"\n";for(var o=0;o<t.length+1;o++){for(var C=0;C<t.length-o;C++)g+="  ";g+="}\n"}return g+"\n\n"}},{key:"print",value:function(t){return wd(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var g,i,n=[];for(g=0;g<=e.length;g++)n[g]=[g];for(i=0;i<=t.length;i++)n[0][i]=i;for(g=1;g<=e.length;g++)for(i=1;i<=t.length;i++)e.charAt(g-1)==t.charAt(i-1)?n[g][i]=n[g-1][i-1]:n[g][i]=Math.min(n[g-1][i-1]+1,Math.min(n[g][i-1]+1,n[g-1][i]+1));return n[e.length][t.length]}}]),t}(),Mp=Xf,Bp=Dp,_p=Kf,zp=Rp,Fp=Np,jp=Pp;function Lp(t){return Wp=t,function(){var t={};if(Up=0,Hp=Wp.charAt(0),nv(),"strict"===Qp&&(t.strict=!0,nv()),"graph"!==Qp&&"digraph"!==Qp||(t.type=Qp,nv()),Kp===Vp.IDENTIFIER&&(t.id=Qp,nv()),"{"!=Qp)throw sv("Angle bracket { expected");if(nv(),Av(t),"}"!=Qp)throw sv("Angle bracket } expected");if(nv(),""!==Qp)throw sv("End of file expected");return nv(),delete t.node,delete t.edge,delete t.graph,t}()}var Zp={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},Gp=yd(Zp);Gp.color="color.color",Gp.style="dashes";var Vp={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},Yp={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Wp="",Up=0,Hp="",Qp="",Kp=Vp.NULL;function Xp(){Up++,Hp=Wp.charAt(Up)}function Jp(){return Wp.charAt(Up+1)}function qp(t){var e=t.charCodeAt(0);return e<47?35===e||46===e:e<59?e>47:e<91?e>64:e<96?95===e:e<123&&e>96}function $p(t,e){if(t||(t={}),e)for(var g in e)e.hasOwnProperty(g)&&(t[g]=e[g]);return t}function tv(t,e,g){for(var i=e.split("."),n=t;i.length;){var A=i.shift();i.length?(n[A]||(n[A]={}),n=n[A]):n[A]=g}}function ev(t,e){for(var g,i,n=null,A=[t],o=t;o.parent;)A.push(o.parent),o=o.parent;if(o.nodes)for(g=0,i=o.nodes.length;g<i;g++)if(e.id===o.nodes[g].id){n=o.nodes[g];break}for(n||(n={id:e.id},t.node&&(n.attr=$p(n.attr,t.node))),g=A.length-1;g>=0;g--){var C,I=A[g];I.nodes||(I.nodes=[]),-1===fd(C=I.nodes).call(C,n)&&I.nodes.push(n)}e.attr&&(n.attr=$p(n.attr,e.attr))}function gv(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var g=$p({},t.edge);e.attr=$p(g,e.attr)}}function iv(t,e,g,i,n){var A={from:e,to:g,type:i};return t.edge&&(A.attr=$p({},t.edge)),A.attr=$p(A.attr||{},n),null!=n&&n.hasOwnProperty("arrows")&&null!=n.arrows&&(A.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),A}function nv(){for(Kp=Vp.NULL,Qp="";" "===Hp||"\t"===Hp||"\n"===Hp||"\r"===Hp;)Xp();do{var t=!1;if("#"===Hp){for(var e=Up-1;" "===Wp.charAt(e)||"\t"===Wp.charAt(e);)e--;if("\n"===Wp.charAt(e)||""===Wp.charAt(e)){for(;""!=Hp&&"\n"!=Hp;)Xp();t=!0}}if("/"===Hp&&"/"===Jp()){for(;""!=Hp&&"\n"!=Hp;)Xp();t=!0}if("/"===Hp&&"*"===Jp()){for(;""!=Hp;){if("*"===Hp&&"/"===Jp()){Xp(),Xp();break}Xp()}t=!0}for(;" "===Hp||"\t"===Hp||"\n"===Hp||"\r"===Hp;)Xp()}while(t);if(""!==Hp){var g=Hp+Jp();if(Yp[g])return Kp=Vp.DELIMITER,Qp=g,Xp(),void Xp();if(Yp[Hp])return Kp=Vp.DELIMITER,Qp=Hp,void Xp();if(qp(Hp)||"-"===Hp){for(Qp+=Hp,Xp();qp(Hp);)Qp+=Hp,Xp();return"false"===Qp?Qp=!1:"true"===Qp?Qp=!0:isNaN(Number(Qp))||(Qp=Number(Qp)),void(Kp=Vp.IDENTIFIER)}if('"'===Hp){for(Xp();""!=Hp&&('"'!=Hp||'"'===Hp&&'"'===Jp());)'"'===Hp?(Qp+=Hp,Xp()):"\\"===Hp&&"n"===Jp()?(Qp+="\n",Xp()):Qp+=Hp,Xp();if('"'!=Hp)throw sv('End of string " expected');return Xp(),void(Kp=Vp.IDENTIFIER)}for(Kp=Vp.UNKNOWN;""!=Hp;)Qp+=Hp,Xp();throw new SyntaxError('Syntax error in part "'+av(Qp,30)+'"')}Kp=Vp.DELIMITER}function Av(t){for(;""!==Qp&&"}"!=Qp;)ov(t),";"===Qp&&nv()}function ov(t){var e=Cv(t);if(e)Iv(t,e);else{var g=function(t){return"node"===Qp?(nv(),t.node=rv(),"node"):"edge"===Qp?(nv(),t.edge=rv(),"edge"):"graph"===Qp?(nv(),t.graph=rv(),"graph"):null}(t);if(!g){if(Kp!=Vp.IDENTIFIER)throw sv("Identifier expected");var i=Qp;if(nv(),"="===Qp){if(nv(),Kp!=Vp.IDENTIFIER)throw sv("Identifier expected");t[i]=Qp,nv()}else!function(t,e){var g={id:e},i=rv();i&&(g.attr=i),ev(t,g),Iv(t,e)}(t,i)}}}function Cv(t){var e=null;if("subgraph"===Qp&&((e={}).type="subgraph",nv(),Kp===Vp.IDENTIFIER&&(e.id=Qp,nv())),"{"===Qp){if(nv(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,Av(e),"}"!=Qp)throw sv("Angle bracket } expected");nv(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function Iv(t,e){for(;"->"===Qp||"--"===Qp;){var g,i=Qp;nv();var n=Cv(t);if(n)g=n;else{if(Kp!=Vp.IDENTIFIER)throw sv("Identifier or subgraph expected");ev(t,{id:g=Qp}),nv()}gv(t,iv(t,e,g,i,rv())),e=g}}function rv(){for(var t,e,g=null,i={dashed:!0,solid:!1,dotted:[1,5]},n={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},A=new Array,o=new Array;"["===Qp;){for(nv(),g={};""!==Qp&&"]"!=Qp;){if(Kp!=Vp.IDENTIFIER)throw sv("Attribute name expected");var C=Qp;if(nv(),"="!=Qp)throw sv("Equal sign = expected");if(nv(),Kp!=Vp.IDENTIFIER)throw sv("Attribute value expected");var I=Qp;"style"===C&&(I=i[I]),"arrowhead"===C&&(C="arrows",I={to:{enabled:!0,type:n[I]}}),"arrowtail"===C&&(C="arrows",I={from:{enabled:!0,type:n[I]}}),A.push({attr:g,name:C,value:I}),o.push(C),nv(),","==Qp&&nv()}if("]"!=Qp)throw sv("Bracket ] expected");nv()}if(Tu(o).call(o,"dir")){var r={arrows:{}};for(t=0;t<A.length;t++)if("arrows"===A[t].name)if(null!=A[t].value.to)r.arrows.to=t;else{if(null==A[t].value.from)throw sv("Invalid value of arrows");r.arrows.from=t}else"dir"===A[t].name&&(r.dir=t);var s,a,l=A[r.dir].value;if(!Tu(o).call(o,"arrows"))if("both"===l)A.push({attr:A[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=A.length-1,A.push({attr:A[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=A.length-1;else if("forward"===l)A.push({attr:A[r.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),r.arrows.to=A.length-1;else if("back"===l)A.push({attr:A[r.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),r.arrows.from=A.length-1;else{if("none"!==l)throw sv('Invalid dir type "'+l+'"');A.push({attr:A[r.dir].attr,name:"arrows",value:""}),r.arrows.to=A.length-1}if("both"===l)r.arrows.to&&r.arrows.from?(a=A[r.arrows.to].value.to.type,s=A[r.arrows.from].value.from.type,A[r.arrows.to]={attr:A[r.arrows.to].attr,name:A[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}},ru(A).call(A,r.arrows.from,1)):r.arrows.to?(a=A[r.arrows.to].value.to.type,s="arrow",A[r.arrows.to]={attr:A[r.arrows.to].attr,name:A[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s=A[r.arrows.from].value.from.type,A[r.arrows.from]={attr:A[r.arrows.from].attr,name:A[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}});else if("back"===l)r.arrows.to&&r.arrows.from?(a="",s=A[r.arrows.from].value.from.type,A[r.arrows.from]={attr:A[r.arrows.from].attr,name:A[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.to?(a="",s="arrow",r.arrows.from=r.arrows.to,A[r.arrows.from]={attr:A[r.arrows.from].attr,name:A[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="",s=A[r.arrows.from].value.from.type,A[r.arrows.to]={attr:A[r.arrows.from].attr,name:A[r.arrows.from].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),A[r.arrows.from]={attr:A[r.arrows.from].attr,name:A[r.arrows.from].name,value:{from:{enabled:!0,type:A[r.arrows.from].value.from.type}}};else if("none"===l){var c;A[c=r.arrows.to?r.arrows.to:r.arrows.from]={attr:A[c].attr,name:A[c].name,value:""}}else{if("forward"!==l)throw sv('Invalid dir type "'+l+'"');r.arrows.to&&r.arrows.from||r.arrows.to?(a=A[r.arrows.to].value.to.type,s="",A[r.arrows.to]={attr:A[r.arrows.to].attr,name:A[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}):r.arrows.from&&(a="arrow",s="",r.arrows.to=r.arrows.from,A[r.arrows.to]={attr:A[r.arrows.to].attr,name:A[r.arrows.to].name,value:{to:{enabled:!0,type:a},from:{enabled:!0,type:s}}}),A[r.arrows.to]={attr:A[r.arrows.to].attr,name:A[r.arrows.to].name,value:{to:{enabled:!0,type:A[r.arrows.to].value.to.type}}}}ru(A).call(A,r.dir,1)}if(Tu(o).call(o,"penwidth")){var u=[];for(e=A.length,t=0;t<e;t++)"width"!==A[t].name&&("penwidth"===A[t].name&&(A[t].name="width"),u.push(A[t]));A=u}for(e=A.length,t=0;t<e;t++)tv(A[t].attr,A[t].name,A[t].value);return g}function sv(t){return new SyntaxError(t+', got "'+av(Qp,30)+'" (char '+Up+")")}function av(t,e){return t.length<=e?t:t.substr(0,27)+"..."}function lv(t,e,g){for(var i=e.split("."),n=i.pop(),A=t,o=0;o<i.length;o++){var C=i[o];C in A||(A[C]={}),A=A[C]}return A[n]=g,t}function cv(t,e){var g={};for(var i in t)if(t.hasOwnProperty(i)){var n=e[i];Ic(n)?Pc(n).call(n,(function(e){lv(g,e,t[i])})):lv(g,"string"==typeof n?n:i,t[i])}return g}function uv(t){var e,g=Lp(t),i={nodes:[],edges:[],options:{}};if(g.nodes&&Pc(e=g.nodes).call(e,(function(t){var e={id:t.id,label:String(t.label||t.id)};$p(e,cv(t.attr,Zp)),e.image&&(e.shape="image"),i.nodes.push(e)})),g.edges){var n,A=function(t){var e={from:t.from,to:t.to};return $p(e,cv(t.attr,Gp)),null==e.arrows&&"->"===t.type&&(e.arrows="to"),e};Pc(n=g.edges).call(n,(function(t){var e,g,n,o,C,I,r;e=t.from instanceof Object?t.from.nodes:{id:t.from},g=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges&&Pc(n=t.from.edges).call(n,(function(t){var e=A(t);i.edges.push(e)})),C=g,I=function(e,g){var n=iv(i,e.id,g.id,t.type,t.attr),o=A(n);i.edges.push(o)},Ic(o=e)?Pc(o).call(o,(function(t){Ic(C)?Pc(C).call(C,(function(e){I(t,e)})):I(t,C)})):Ic(C)?Pc(C).call(C,(function(t){I(o,t)})):I(o,C),t.to instanceof Object&&t.to.edges&&Pc(r=t.to.edges).call(r,(function(t){var e=A(t);i.edges.push(e)}))}))}return g.attr&&(i.options=g.attr),i}var dv=Object.freeze({__proto__:null,DOTToGraph:uv,parseDOT:Lp});function hv(t,e){var g,i={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=e&&(null!=e.fixed&&(i.nodes.fixed=e.fixed),null!=e.parseColor&&(i.nodes.parseColor=e.parseColor),null!=e.inheritColor&&(i.edges.inheritColor=e.inheritColor));var n=t.edges,A=uc(n).call(n,(function(t){var e={from:t.source,id:t.id,to:t.target};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),"Directed"===t.type&&(e.arrows="to"),t.color&&!1===i.edges.inheritColor&&(e.color=t.color),e}));return{nodes:uc(g=t.nodes).call(g,(function(t){var e={id:t.id,fixed:i.nodes.fixed&&null!=t.x&&null!=t.y};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.size&&(e.size=t.size),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),null!=t.title&&(e.title=t.title),null!=t.x&&(e.x=t.x),null!=t.y&&(e.y=t.y),null!=t.color&&(!0===i.nodes.parseColor?e.color=t.color:e.color={background:t.color,border:t.color,highlight:{background:t.color,border:t.color},hover:{background:t.color,border:t.color}}),e})),edges:A}}var fv=Object.freeze({__proto__:null,parseGephi:hv}),pv=Object.freeze({__proto__:null,cn:{addDescription:"单击空白处放置新节点。",addEdge:"添加连接线",addNode:"添加节点",back:"返回",close:"關閉",createEdgeError:"无法将连接线连接到群集。",del:"删除选定",deleteClusterError:"无法删除群集。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",edit:"编辑",editClusterError:"无法编辑群集。",editEdge:"编辑连接线",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",editNode:"编辑节点"},cs:{addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",addEdge:"Přidat hranu",addNode:"Přidat vrchol",back:"Zpět",close:"Zavřít",createEdgeError:"Nelze připojit hranu ke shluku.",del:"Smazat výběr",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",editNode:"Upravit vrchol"},de:{addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzufügen",addNode:"Knoten hinzufügen",back:"Zurück",close:"Schließen",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",del:"Lösche Auswahl",deleteClusterError:"Cluster können nicht gelöscht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster können nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},en:{addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},es:{addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",addEdge:"Añadir arista",addNode:"Añadir nodo",back:"Atrás",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selección",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},fr:{addDescription:"Cliquez dans un endroit vide pour placer un nœud.",addEdge:"Ajouter un lien",addNode:"Ajouter un nœud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de créer un lien vers un cluster.",del:"Effacer la sélection",deleteClusterError:"Les clusters ne peuvent pas être effacés.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",edit:"Éditer",editClusterError:"Les clusters ne peuvent pas être édités.",editEdge:"Éditer le lien",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",editNode:"Éditer le nœud"},it:{addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},nl:{addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},pt:{addDescription:"Clique em um espaço em branco para adicionar um novo nó",addEdge:"Adicionar aresta",addNode:"Adicionar nó",back:"Voltar",close:"Fechar",createEdgeError:"Não foi possível linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters não puderam ser removidos.",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",edit:"Editar",editClusterError:"Clusters não puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",editNode:"Editar nó"},ru:{addDescription:"Кликните в свободное место, чтобы добавить новый узел.",addEdge:"Добавить ребро",addNode:"Добавить узел",back:"Назад",close:"Закрывать",createEdgeError:"Невозможно соединить ребра в кластер.",del:"Удалить выбранное",deleteClusterError:"Кластеры не могут быть удалены",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",edit:"Редактировать",editClusterError:"Кластеры недоступны для редактирования.",editEdge:"Редактировать ребро",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",editNode:"Редактировать узел"},uk:{addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",addEdge:"Додати край",addNode:"Додати вузол",back:"Назад",close:"Закрити",createEdgeError:"Не можливо об'єднати краї в групу.",del:"Видалити обране",deleteClusterError:"Групи не можуть бути видалені.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",edit:"Редагувати",editClusterError:"Групи недоступні для редагування.",editEdge:"Редагувати край",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",editNode:"Редагувати вузол"}}),vv=function(){function t(){nI(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return Cl(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var g=Math.floor(e/2),i=Math.floor(e/4),n=Math.floor(e/8),A=Math.floor(e/16),o=Math.floor(t/2),C=Math.floor(t/4),I=Math.floor(t/8),r=Math.floor(t/16);this.canvas.width=3*C,this.canvas.height=g,this.coordinates=[[0,0,o,g],[o,0,C,i],[o,i,I,n],[5*I,i,r,A]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var g=1;g<this.NUM_ITERATIONS;g++){var i=this.coordinates[g-1],n=this.coordinates[g];t.drawImage(this.canvas,i[0],i[1],i[2],i[3],n[0],n[1],n[2],n[3])}}},{key:"drawImageAtPosition",value:function(t,e,g,i,n,A){if(this.initialized())if(e>2){e*=.5;for(var o=0;e>2&&o<this.NUM_ITERATIONS;)e*=.5,o+=1;o>=this.NUM_ITERATIONS&&(o=this.NUM_ITERATIONS-1);var C=this.coordinates[o];t.drawImage(this.canvas,C[0],C[1],C[2],C[3],g,i,n,A)}else t.drawImage(this.image,g,i,n,A)}}]),t}(),yv=function(){function t(e){nI(this,t),this.images={},this.imageBroken={},this.callback=e}return Cl(t,[{key:"_tryloadBrokenUrl",value:function(t,e,g){void 0!==t&&void 0!==g&&(void 0!==e?(g.image.onerror=function(){console.error("Could not load brokenImage:",e)},g.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var g=this,i=this.images[t];if(i)return i;var n=new vv;return this.images[t]=n,n.image.onload=function(){g._fixImageCoordinates(n.image),n.init(),g._redrawWithImage(n)},n.image.onerror=function(){console.error("Could not load image:",t),g._tryloadBrokenUrl(t,e,n)},n.image.src=t,n}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),mv={exports:{}},bv=C((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),wv=C,xv=gt,kv=b,Ev=bv,Ov=Object.isExtensible,Tv=wv((function(){Ov(1)}))||Ev?function(t){return!!xv(t)&&(!Ev||"ArrayBuffer"!==kv(t))&&(!Ov||Ov(t))}:Ov,Dv=!C((function(){return Object.isExtensible(Object.preventExtensions({}))})),Rv=Tg,Sv=p,Nv=Wg,Pv=gt,Mv=$t,Bv=Je.f,_v=ZI,zv=YI,Fv=Tv,jv=Dv,Lv=!1,Zv=ne("meta"),Gv=0,Vv=function(t){Bv(t,Zv,{value:{objectID:"O"+Gv++,weakData:{}}})},Yv=mv.exports={enable:function(){Yv.enable=function(){},Lv=!0;var t=_v.f,e=Sv([].splice),g={};g[Zv]=1,t(g).length&&(_v.f=function(g){for(var i=t(g),n=0,A=i.length;n<A;n++)if(i[n]===Zv){e(i,n,1);break}return i},Rv({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zv.f}))},fastKey:function(t,e){if(!Pv(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Mv(t,Zv)){if(!Fv(t))return"F";if(!e)return"E";Vv(t)}return t[Zv].objectID},getWeakData:function(t,e){if(!Mv(t,Zv)){if(!Fv(t))return!0;if(!e)return!1;Vv(t)}return t[Zv].weakData},onFreeze:function(t){return jv&&Lv&&Fv(t)&&!Mv(t,Zv)&&Vv(t),t}};Nv[Zv]=!0;var Wv=mv.exports,Uv=Xe,Hv=M,Qv=gg,Kv=Dt,Xv=jo,Jv=jg,qv=rt,$v=yC,ty=cC,ey=Po,gy=TypeError,iy=function(t,e){this.stopped=t,this.result=e},ny=iy.prototype,Ay=function(t,e,g){var i,n,A,o,C,I,r,s=g&&g.that,a=!(!g||!g.AS_ENTRIES),l=!(!g||!g.IS_RECORD),c=!(!g||!g.IS_ITERATOR),u=!(!g||!g.INTERRUPTED),d=Uv(e,s),h=function(t){return i&&ey(i,"normal",t),new iy(!0,t)},f=function(t){return a?(Qv(t),u?d(t[0],t[1],h):d(t[0],t[1])):u?d(t,h):d(t)};if(l)i=t.iterator;else if(c)i=t;else{if(!(n=ty(t)))throw new gy(Kv(t)+" is not iterable");if(Xv(n)){for(A=0,o=Jv(t);o>A;A++)if((C=f(t[A]))&&qv(ny,C))return C;return new iy(!1)}i=$v(t,n)}for(I=l?t.next:i.next;!(r=Hv(I,i)).done;){try{C=f(r.value)}catch(t){ey(i,"throw",t)}if("object"==typeof C&&C&&qv(ny,C))return C}return new iy(!1)},oy=rt,Cy=TypeError,Iy=function(t,e){if(oy(e,t))return t;throw new Cy("Incorrect invocation")},ry=Tg,sy=o,ay=Wv,ly=C,cy=hg,uy=Ay,dy=Iy,hy=D,fy=gt,py=H,vy=WA,yy=Je.f,my=wr.forEach,by=S,wy=zn.set,xy=zn.getterFor,ky=function(t,e,g){var i,n=-1!==t.indexOf("Map"),A=-1!==t.indexOf("Weak"),o=n?"set":"add",C=sy[t],I=C&&C.prototype,r={};if(by&&hy(C)&&(A||I.forEach&&!ly((function(){(new C).entries().next()})))){var s=(i=e((function(e,g){wy(dy(e,s),{type:t,collection:new C}),py(g)||uy(g,e[o],{that:e,AS_ENTRIES:n})}))).prototype,a=xy(t);my(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"===t||"set"===t;!(t in I)||A&&"clear"===t||cy(s,t,(function(g,i){var n=a(this).collection;if(!e&&A&&!fy(g))return"get"===t&&void 0;var o=n[t](0===g?0:g,i);return e?this:o}))})),A||yy(s,"size",{configurable:!0,get:function(){return a(this).collection.size}})}else i=g.getConstructor(e,t,n,o),ay.enable();return vy(i,t,!1,!0),r[t]=i,ry({global:!0,forced:!0},r),A||g.setStrong(i,t,n),i},Ey=EA,Oy=function(t,e,g){for(var i in e)g&&g.unsafe&&t[i]?t[i]=e[i]:Ey(t,i,e[i],g);return t},Ty=It,Dy=ir,Ry=S,Sy=ce("species"),Ny=dA,Py=ir,My=Oy,By=Xe,_y=Iy,zy=H,Fy=Ay,jy=yo,Ly=mo,Zy=S,Gy=Wv.fastKey,Vy=zn.set,Yy=zn.getterFor,Wy={getConstructor:function(t,e,g,i){var n=t((function(t,n){_y(t,A),Vy(t,{type:e,index:Ny(null),first:void 0,last:void 0,size:0}),Zy||(t.size=0),zy(n)||Fy(n,t[i],{that:t,AS_ENTRIES:g})})),A=n.prototype,o=Yy(e),C=function(t,e,g){var i,n,A=o(t),C=I(t,e);return C?C.value=g:(A.last=C={index:n=Gy(e,!0),key:e,value:g,previous:i=A.last,next:void 0,removed:!1},A.first||(A.first=C),i&&(i.next=C),Zy?A.size++:t.size++,"F"!==n&&(A.index[n]=C)),t},I=function(t,e){var g,i=o(t),n=Gy(e);if("F"!==n)return i.index[n];for(g=i.first;g;g=g.next)if(g.key===e)return g};return My(A,{clear:function(){for(var t=o(this),e=t.index,g=t.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete e[g.index],g=g.next;t.first=t.last=void 0,Zy?t.size=0:this.size=0},delete:function(t){var e=this,g=o(e),i=I(e,t);if(i){var n=i.next,A=i.previous;delete g.index[i.index],i.removed=!0,A&&(A.next=n),n&&(n.previous=A),g.first===i&&(g.first=n),g.last===i&&(g.last=A),Zy?g.size--:e.size--}return!!i},forEach:function(t){for(var e,g=o(this),i=By(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:g.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!I(this,t)}}),My(A,g?{get:function(t){var e=I(this,t);return e&&e.value},set:function(t,e){return C(this,0===t?0:t,e)}}:{add:function(t){return C(this,t=0===t?0:t,t)}}),Zy&&Py(A,"size",{configurable:!0,get:function(){return o(this).size}}),n},setStrong:function(t,e,g){var i=e+" Iterator",n=Yy(e),A=Yy(i);jy(t,e,(function(t,e){Vy(this,{type:i,target:t,state:n(t),kind:e,last:void 0})}),(function(){for(var t=A(this),e=t.kind,g=t.last;g&&g.removed;)g=g.previous;return t.target&&(t.last=g=g?g.next:t.state.first)?Ly("keys"===e?g.key:"values"===e?g.value:[g.key,g.value],!1):(t.target=void 0,Ly(void 0,!0))}),g?"entries":"values",!g,!0),function(t){var e=Ty(t);Ry&&e&&!e[Sy]&&Dy(e,Sy,{configurable:!0,get:function(){return this}})}(e)}};ky("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Wy);var Uy=n(it.Map),Hy=function(){function t(){nI(this,t),this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},fi(this.options,this.defaultOptions)}return Cl(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var g in t)if(Object.prototype.hasOwnProperty.call(t,g)&&-1===fd(e).call(e,g)){var i=t[g];this.add(g,i)}}},{key:"clear",value:function(){this._groups=new Uy,this._groupNames=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],g=this._groups.get(t);if(void 0===g&&e)if(!1===this.options.useDefaultGroups&&this._groupNames.length>0){var i=this._groupIndex%this._groupNames.length;++this._groupIndex,(g={}).color=this._groups.get(this._groupNames[i]),this._groups.set(t,g)}else{var n=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,(g={}).color=this._defaultGroups[n],this._groups.set(t,g)}return g}},{key:"add",value:function(t,e){return this._groups.has(t)||this._groupNames.push(t),this._groups.set(t,e),e}}]),t}();Tg({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Qy=n(it.Number.isNaN),Ky=o.isFinite,Xy=Number.isFinite||function(t){return"number"==typeof t&&Ky(t)};Tg({target:"Number",stat:!0},{isFinite:Xy});var Jy=n(it.Number.isFinite),qy=wr.some;Tg({target:"Array",proto:!0,forced:!wc("some")},{some:function(t){return qy(this,t,arguments.length>1?arguments[1]:void 0)}});var $y=Ni("Array").some,tm=rt,em=$y,gm=Array.prototype,im=n((function(t){var e=t.some;return t===gm||tm(gm,t)&&e===gm.some?em:e})),nm=n(it.Object.getOwnPropertySymbols),Am={exports:{}},om=Tg,Cm=C,Im=$,rm=R.f,sm=S;om({target:"Object",stat:!0,forced:!sm||Cm((function(){rm(1)})),sham:!sm},{getOwnPropertyDescriptor:function(t,e){return rm(Im(t),e)}});var am=it.Object,lm=Am.exports=function(t,e){return am.getOwnPropertyDescriptor(t,e)};am.getOwnPropertyDescriptor.sham&&(lm.sham=!0);var cm=Am.exports,um=n(cm),dm=Cc,hm=$,fm=R,pm=CC;Tg({target:"Object",stat:!0,sham:!S},{getOwnPropertyDescriptors:function(t){for(var e,g,i=hm(t),n=fm.f,A=dm(i),o={},C=0;A.length>C;)void 0!==(g=n(i,e=A[C++]))&&pm(o,e,g);return o}});var vm=n(it.Object.getOwnPropertyDescriptors),ym={exports:{}},mm=Tg,bm=S,wm=Yn.f;mm({target:"Object",stat:!0,forced:Object.defineProperties!==wm,sham:!bm},{defineProperties:wm});var xm=it.Object,km=ym.exports=function(t,e){return xm.defineProperties(t,e)};xm.defineProperties.sham&&(km.sham=!0);var Em=n(ym.exports),Om=n(aI);function Tm(t,e,g){return(e=Al(e))in t?lI(t,e,{value:g,enumerable:!0,configurable:!0,writable:!0}):t[e]=g,t}var Dm=o,Rm=C,Sm=In,Nm=Qu.trim,Pm=Lu,Mm=p("".charAt),Bm=Dm.parseFloat,_m=Dm.Symbol,zm=_m&&_m.iterator,Fm=1/Bm(Pm+"-0")!=-1/0||zm&&!Rm((function(){Bm(Object(zm))}))?function(t){var e=Nm(Sm(t)),g=Bm(e);return 0===g&&"-"===Mm(e,0)?-0:g}:Bm;Tg({global:!0,forced:parseFloat!==Fm},{parseFloat:Fm});var jm=n(it.parseFloat),Lm=Tg,Zm=C,Gm=YI.f;Lm({target:"Object",stat:!0,forced:Zm((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:Gm});var Vm=it.Object,Ym=n((function(t){return Vm.getOwnPropertyNames(t)}));function Wm(t,e){var g=["node","edge","label"],i=!0,n=xp(e,"chosen");if("boolean"==typeof n)i=n;else if("object"===il(n)){if(-1===fd(g).call(g,t))throw new Error("choosify: subOption '"+t+"' should be one of '"+g.join("', '")+"'");var A=xp(e,["chosen",t]);"boolean"!=typeof A&&"function"!=typeof A||(i=A)}return i}function Um(t,e,g){if(t.width<=0||t.height<=0)return!1;if(void 0!==g){var i={x:e.x-g.x,y:e.y-g.y};if(0!==g.angle){var n=-g.angle;e={x:Math.cos(n)*i.x-Math.sin(n)*i.y,y:Math.sin(n)*i.x+Math.cos(n)*i.y}}else e=i}var A=t.x+t.width,o=t.y+t.width;return t.left<e.x&&A>e.x&&t.top<e.y&&o>e.y}function Hm(t){return"string"==typeof t&&""!==t}function Qm(t,e,g,i){var n=i.x,A=i.y;if("function"==typeof i.distanceToBorder){var o=i.distanceToBorder(t,e),C=Math.sin(e)*o,I=Math.cos(e)*o;I===o?(n+=o,A=i.y):C===o?(n=i.x,A-=o):(n+=I,A-=C)}else i.shape.width>i.shape.height?(n=i.x+.5*i.shape.width,A=i.y-g):(n=i.x+g,A=i.y-.5*i.shape.height);return{x:n,y:A}}var Km=Ni("Array").values,Xm=An,Jm=$t,qm=rt,$m=Km,tb=Array.prototype,eb={DOMTokenList:!0,NodeList:!0},gb=n((function(t){var e=t.values;return t===tb||qm(tb,t)&&e===tb.values||Jm(eb,Xm(t))?$m:e})),ib=function(){function t(e){nI(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return Cl(t,[{key:"_add",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var i=e;void 0!==e&&""!==e||(i=" ");var n=this.measureText(i,g),A=fi({},gb(n));A.text=e,A.width=n.width,A.mod=g,void 0!==e&&""!==e||(A.width=0),this.lines[t].blocks.push(A),this.lines[t].width+=A.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;t<this.lines.length;t++){var e=this.lines[t],g=0;if(void 0!==e.blocks)for(var i=0;i<e.blocks.length;i++){var n=e.blocks[i];g<n.height&&(g=n.height)}e.height=g}}},{key:"determineLabelSize",value:function(){for(var t=0,e=0,g=0;g<this.lines.length;g++){var i=this.lines[g];i.width>t&&(t=i.width),e+=i.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e<this.lines.length;e++){var g=this.lines[e];if(0!==g.blocks.length&&(e!==this.lines.length-1||0!==g.width)){var i={};fi(i,g),i.blocks=[];for(var n=void 0,A=[],o=0;o<g.blocks.length;o++){var C=g.blocks[o];0!==C.width?A.push(C):void 0===n&&(n=C)}0===A.length&&void 0!==n&&A.push(n),i.blocks=A,t.push(i)}}return t}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var t=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:t}}}]),t}(),nb={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},Ab=function(){function t(e){nI(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return Cl(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e)||(this.setTag(t),0))}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],g=Hl(this.prepareRegExp(t),2),i=g[0],n=g[1],A=i.test(this.text.substr(this.position,n));return A&&e&&(this.position+=n-1),A}},{key:"parseEndTag",value:function(t,e,g){var i=this.mod()===t;return!(!(i="mono"===t?i&&this.mono:i&&!this.mono)||!this.match(e)||(void 0!==g?(this.position===this.text.length-1||this.match(g,!1))&&this.unsetTag(t):this.unsetTag(t),0))}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,g;if(t instanceof RegExp)g=t,e=1;else{var i=nb[t];g=void 0!==i?i:new RegExp(t),e=t.length}return[g,e]}}]),t}(),ob=function(){function t(e,g,i,n){var A=this;nI(this,t),this.ctx=e,this.parent=g,this.selected=i,this.hover=n,this.lines=new ib((function(t,g){if(void 0===t)return 0;var o=A.parent.getFormattingValues(e,i,n,g),C=0;return""!==t&&(C=A.ctx.measureText(t).width),{width:C,values:o}}))}return Cl(t,[{key:"process",value:function(t){if(!Hm(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var g=String(t).split("\n"),i=g.length;if(e.multi)for(var n=0;n<i;n++){var A=this.splitBlocks(g[n],e.multi);if(void 0!==A)if(0!==A.length){if(e.maxWdt>0)for(var o=0;o<A.length;o++){var C=A[o].mod,I=A[o].text;this.splitStringIntoLines(I,C,!0)}else for(var r=0;r<A.length;r++){var s=A[r].mod,a=A[r].text;this.lines.append(a,s)}this.lines.newLine()}else this.lines.newLine("")}else if(e.maxWdt>0)for(var l=0;l<i;l++)this.splitStringIntoLines(g[l]);else for(var c=0;c<i;c++)this.lines.newLine(g[c]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(t){var e="none";return"markdown"===t||"md"===t?e="markdown":!0!==t&&"html"!==t||(e="html"),e}},{key:"splitHtmlBlocks",value:function(t){for(var e=new Ab(t),g=function(t){return!!/&/.test(t)&&(e.replace(e.text,"&lt;","<")||e.replace(e.text,"&amp;","&")||e.add("&"),!0)};e.position<e.text.length;){var i=e.text.charAt(e.position);e.parseWS(i)||/</.test(i)&&(e.parseStartTag("bold","<b>")||e.parseStartTag("ital","<i>")||e.parseStartTag("mono","<code>")||e.parseEndTag("bold","</b>")||e.parseEndTag("ital","</i>")||e.parseEndTag("mono","</code>"))||g(i)||e.add(i),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,g=new Ab(t),i=!0,n=function(t){return!!/\\/.test(t)&&(g.position<e.text.length+1&&(g.position++,t=e.text.charAt(g.position),/ \t/.test(t)?g.spacing=!0:(g.add(t),i=!1)),!0)};g.position<g.text.length;){var A=g.text.charAt(g.position);g.parseWS(A)||n(A)||(i||g.spacing)&&(g.parseStartTag("bold","*")||g.parseStartTag("ital","_")||g.parseStartTag("mono","`"))||g.parseEndTag("bold","*","afterBold")||g.parseEndTag("ital","_","afterItal")||g.parseEndTag("mono","`","afterMono")||(g.add(A),i=!1),g.position++}return g.emitBlock(),g.blocks}},{key:"splitBlocks",value:function(t,e){var g=this.decodeMarkupSystem(e);return"none"===g?[{text:t,mod:"normal"}]:"markdown"===g?this.splitMarkdownBlocks(t):"html"===g?this.splitHtmlBlocks(t):void 0}},{key:"overMaxWidth",value:function(t){var e=this.ctx.measureText(t).width;return this.lines.curWidth()+e>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",g=0;g<t.length;){var i=e+(""===e?"":" ")+t[g];if(this.overMaxWidth(i))break;e=i,g++}return g}},{key:"getLongestFitWord",value:function(t){for(var e=0;e<t.length&&!this.overMaxWidth(ec(t).call(t,0,e));)e++;return e}},{key:"splitStringIntoLines",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var i=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");i.length>0;){var n=this.getLongestFit(i);if(0===n){var A=i[0],o=this.getLongestFitWord(A);this.lines.newLine(ec(A).call(A,0,o),e),i[0]=ec(A).call(A,o)}else{var C=n;" "===i[n-1]?n--:" "===i[C]&&C++;var I=ec(i).call(i,0,n).join("");n==i.length&&g?this.lines.append(I,e):this.lines.newLine(I,e),i=ec(i).call(i,C)}}}}]),t}(),Cb=["bold","ital","boldital","mono"],Ib=function(){function t(e,g){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];nI(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(g),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}return Cl(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),Hm(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===il(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var g=this;ap(Cb,(function(t){g.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:ap(e,(function(t,e){null!=t&&"object"!==il(t)&&(g.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},g=xp(t,"widthConstraint");if("number"==typeof g)e.maxWdt=Number(g),e.minWdt=Number(g);else if("object"===il(g)){var i=xp(t,["widthConstraint","maximum"]);"number"==typeof i&&(e.maxWdt=Number(i));var n=xp(t,["widthConstraint","minimum"]);"number"==typeof n&&(e.minWdt=Number(n))}var A=xp(t,"heightConstraint");if("number"==typeof A)e.minHgt=Number(A);else if("object"===il(A)){var o=xp(t,["heightConstraint","minimum"]);"number"==typeof o&&(e.minHgt=Number(o));var C=xp(t,["heightConstraint","valign"]);"string"==typeof C&&("top"!==C&&"bottom"!==C||(e.valign=C))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),Ip(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=Wm("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var g=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=g)}},{key:"addFontOptionsToPile",value:function(t,e){for(var g=0;g<e.length;++g)this.addFontToPile(t,e[g])}},{key:"addFontToPile",value:function(t,e){if(void 0!==e&&void 0!==e.font&&null!==e.font){var g=e.font;t.push(g)}}},{key:"getBasicOptions",value:function(e){for(var g={},i=0;i<e.length;++i){var n=e[i],A={};t.parseFontString(A,n)&&(n=A),ap(n,(function(t,e){void 0!==t&&(Object.prototype.hasOwnProperty.call(g,e)||(-1!==fd(Cb).call(Cb,e)?g[e]={}:g[e]=t))}))}return g}},{key:"getFontOption",value:function(e,g,i){for(var n,A=0;A<e.length;++A){var o=e[A];if(Object.prototype.hasOwnProperty.call(o,g)){if(null==(n=o[g]))continue;var C={};if(t.parseFontString(C,n)&&(n=C),Object.prototype.hasOwnProperty.call(n,i))return n[i]}}if(Object.prototype.hasOwnProperty.call(this.fontOptions,i))return this.fontOptions[i];throw new Error("Did not find value for multi-font for property: '"+i+"'")}},{key:"getFontOptions",value:function(t,e){for(var g={},i=["color","size","face","mod","vadjust"],n=0;n<i.length;++n){var A=i[n];g[A]=this.getFontOption(t,e,A)}return g}},{key:"propagateFonts",value:function(t){var e=this,g=[];this.addFontOptionsToPile(g,t),this.fontOptions=this.getBasicOptions(g);for(var i=function(){var t=Cb[n],i=e.fontOptions[t];ap(e.getFontOptions(g,t),(function(t,e){i[e]=t})),i.size=Number(i.size),i.vadjust=Number(i.vadjust)},n=0;n<Cb.length;++n)i()}},{key:"draw",value:function(t,e,g,i,n){var A=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var o=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&o<this.elementOptions.scaling.label.drawThreshold-1||(o>=this.elementOptions.scaling.label.maxVisible&&(o=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,i,n,e,g,A),this._drawBackground(t),this._drawText(t,e,this.size.yLine,A,o))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,g){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",n=arguments.length>4?arguments[4]:void 0,A=Hl(this._setAlignment(t,e,g,i),2);e=A[0],g=A[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(g-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(g+=(this.size.height-this.size.labelHeight)/2));for(var o=0;o<this.lineCount;o++){var C=this.lines[o];if(C&&C.blocks){var I=0;this.isEdgeLabel||"center"===this.fontOptions.align?I+=(this.size.width-C.width)/2:"right"===this.fontOptions.align&&(I+=this.size.width-C.width);for(var r=0;r<C.blocks.length;r++){var s=C.blocks[r];t.font=s.font;var a=Hl(this._getColor(s.color,n,s.strokeColor),2),l=a[0],c=a[1];s.strokeWidth>0&&(t.lineWidth=s.strokeWidth,t.strokeStyle=c,t.lineJoin="round"),t.fillStyle=l,s.strokeWidth>0&&t.strokeText(s.text,e+I,g+s.vadjust),t.fillText(s.text,e+I,g+s.vadjust),I+=s.width}g+=C.height}}}},{key:"_setAlignment",value:function(t,e,g,i){return this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf?(e=0,g=0,"top"===this.fontOptions.align?(t.textBaseline="alphabetic",g-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",g+=4):t.textBaseline="middle"):t.textBaseline=i,[e,g]}},{key:"_getColor",value:function(t,e,g){var i=t||"#000000",n=g||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var A=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));i=cp(i,A),n=cp(n,A)}return[i,n]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,g),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var g=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=g,e=.5*-this.size.height;break;case"top":t=g,e=-(this.size.height+2);break;case"bottom":t=g,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,g){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,A=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,g),this.size.left=i-.5*this.size.width,this.size.top=n-.5*this.size.height,this.size.yLine=n+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===A&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,g,i){var n=function(t,e,g){return"normal"===e?"mod"===g?"":t[g]:void 0!==t[e][g]?t[e][g]:t[g]},A={color:n(this.fontOptions,i,"color"),size:n(this.fontOptions,i,"size"),face:n(this.fontOptions,i,"face"),mod:n(this.fontOptions,i,"mod"),vadjust:n(this.fontOptions,i,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||g)&&("normal"===i&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?A.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(A,this.elementOptions.id,e,g));var o="";return void 0!==A.mod&&""!==A.mod&&(o+=A.mod+" "),o+=A.size+"px "+A.face,t.font=o.replace(/"/g,""),A.font=t.font,A.height=A.size,A}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,g,i){return new ob(t,this,e,g).process(i)}},{key:"_processLabel",value:function(t,e,g){if(!1!==this.labelDirty||this.differentState(e,g)){var i=this._processLabelText(t,e,g,this.elementOptions.label);this.fontOptions.minWdt>0&&i.width<this.fontOptions.minWdt&&(i.width=this.fontOptions.minWdt),this.size.labelHeight=i.height,this.fontOptions.minHgt>0&&i.height<this.fontOptions.minHgt&&(i.height=this.fontOptions.minHgt),this.lines=i.lines,this.lineCount=i.lines.length,this.size.width=i.width,this.size.height=i.height,this.selectedState=e,this.hoverState=g,this.labelDirty=!1}}},{key:"visible",value:function(){return 0!==this.size.width&&0!==this.size.height&&void 0!==this.elementOptions.label&&!(this.fontOptions.size*this.body.view.scale<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(t,e){if(!e||"string"!=typeof e)return!1;var g=e.split(" ");return t.size=+g[0].replace("px",""),t.face=g[1],t.color=g[2],!0}}]),t}(),rb=iC,sb=Dt,ab=TypeError,lb=Tg,cb=c,ub=Di,db=function(t){if(rb(t))return t;throw new ab(sb(t)+" is not a constructor")},hb=gg,fb=gt,pb=dA,vb=C,yb=It("Reflect","construct"),mb=Object.prototype,bb=[].push,wb=vb((function(){function t(){}return!(yb((function(){}),[],t)instanceof t)})),xb=!vb((function(){yb((function(){}))})),kb=wb||xb;lb({target:"Reflect",stat:!0,forced:kb,sham:kb},{construct:function(t,e){db(t),hb(e);var g=arguments.length<3?t:db(arguments[2]);if(xb&&!wb)return yb(t,e,g);if(t===g){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return cb(bb,i,e),new(cb(ub,t,i))}var n=g.prototype,A=pb(fb(n)?n:mb),o=cb(t,A,e);return fb(o)?o:A}});var Eb=n(it.Reflect.construct),Ob=n(vd);Tg({target:"Object",stat:!0},{setPrototypeOf:Ao});var Tb=n(it.Object.setPrototypeOf),Db=n(zi);function Rb(t,e){var g;return Rb=Tb?Db(g=Tb).call(g):function(t,e){return t.__proto__=e,t},Rb(t,e)}function Sb(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Ob(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),lI(t,"prototype",{writable:!1}),e&&Rb(t,e)}function Nb(t,e){if(e&&("object"===il(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}var Pb=n(Nu);function Mb(t){var e;return Mb=Tb?Db(e=Pb).call(e):function(t){return t.__proto__||Pb(t)},Mb(t)}var Bb=function(){function t(e,g,i){nI(this,t),this.body=g,this.labelModule=i,this.setOptions(e),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return Cl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"_setMargins",value:function(t){this.margin={},this.options.margin&&("object"==il(this.options.margin)?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),t.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(t,e){var g=this.options.borderWidth;return t&&this.resize(t),Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+g}},{key:"enableShadow",value:function(t,e){e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(t,e){if(!1!==e.borderDashes)if(void 0!==t.setLineDash){var g=e.borderDashes;!0===g&&(g=[5,15]),t.setLineDash(g)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,e.borderDashes=!1}},{key:"disableBorderDashes",value:function(t,e){!1!==e.borderDashes&&(void 0!==t.setLineDash?t.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,e.borderDashes=!1))}},{key:"needsRefresh",value:function(t,e){return!0===this.refreshNeeded?(this.refreshNeeded=!1,!0):void 0===this.width||this.labelModule.differentState(t,e)}},{key:"initContextForDraw",value:function(t,e){var g=e.borderWidth/this.body.view.scale;t.lineWidth=Math.min(this.width,g),t.strokeStyle=e.borderColor,t.fillStyle=e.color}},{key:"performStroke",value:function(t,e){var g=e.borderWidth/this.body.view.scale;t.save(),g>0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),Xd(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,g,i,n){void 0!==g&&this.resize(g,i,n),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,g,i,n){this._updateBoundingBox(t,e,g,i,n)}},{key:"getDimensionsFromLabel",value:function(t,e,g){this.textSize=this.labelModule.getTextSize(t,e,g);var i=this.textSize.width,n=this.textSize.height;return 0===i&&(i=14,n=14),{width:i,height:n}}}]),t}();var _b=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n))._setMargins(n),A}return Cl(g,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,g)){var i=this.getDimensionsFromLabel(t,e,g);this.width=i.width+this.margin.right+this.margin.left,this.height=i.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,g,i,n,A){this.resize(t,i,n),this.left=e-this.width/2,this.top=g-this.height/2,this.initContextForDraw(t,A),Li(t,this.left,this.top,this.width,this.height,A.borderRadius),this.performFill(t,A),this.updateBoundingBox(e,g,t,i,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,n)}},{key:"updateBoundingBox",value:function(t,e,g,i,n){this._updateBoundingBox(t,e,g,i,n);var A=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(A)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var g=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+g}}]),g}(Bb);var zb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n)).labelOffset=0,A.selected=!1,A}return Cl(g,[{key:"setOptions",value:function(t,e,g){this.options=t,void 0===e&&void 0===g||this.setImages(e,g)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var g=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=g}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==il(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var g=1,i=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?g=this.imageObj.width/this.imageObj.height:i=this.imageObj.height/this.imageObj.width),t=2*this.options.size*g,e=2*this.options.size*i}else{var n=this._getImagePadding();t=this.imageObj.width+n.left+n.right,e=this.imageObj.height+n.top+n.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,g,i){this.initContextForDraw(t,i),ji(t,e,g,i.size),this.performFill(t,i)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var g=1;!0===this.options.shapeProperties.interpolation&&(g=this.imageObj.width/this.width/this.body.view.scale);var i=this._getImagePadding(),n=this.left+i.left,A=this.top+i.top,o=this.width-i.left-i.right,C=this.height-i.top-i.bottom;this.imageObj.drawImageAtPosition(t,g,n,A,o,C),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,g,i,n){var A=0;if(void 0!==this.height){A=.5*this.height;var o=this.labelModule.getTextSize(t,i,n);o.lineCount>=1&&(A+=o.height/2)}var C=g+A;this.options.label&&(this.labelOffset=A),this.labelModule.draw(t,e,C,i,n,"hanging")}}]),g}(Bb);var Fb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n))._setMargins(n),A}return Cl(g,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,g)){var i=this.getDimensionsFromLabel(t,e,g),n=Math.max(i.width+this.margin.right+this.margin.left,i.height+this.margin.top+this.margin.bottom);this.options.size=n/2,this.width=n,this.height=n,this.radius=this.width/2}}},{key:"draw",value:function(t,e,g,i,n,A){this.resize(t,i,n),this.left=e-this.width/2,this.top=g-this.height/2,this._drawRawCircle(t,e,g,A),this.updateBoundingBox(e,g),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,g,i,n)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),g}(zb);var jb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n,A,o){var C;return nI(this,g),(C=e.call(this,t,i,n)).setImages(A,o),C}return Cl(g,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var i=2*this.options.size;return this.width=i,this.height=i,void(this.radius=.5*this.width)}this.needsRefresh(e,g)&&this._resizeImage()}},{key:"draw",value:function(t,e,g,i,n,A){this.switchImages(i),this.resize();var o=e,C=g;"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=g,o+=this.width/2,C+=this.height/2):(this.left=e-this.width/2,this.top=g-this.height/2),this._drawRawCircle(t,o,C,A),t.save(),t.clip(),this._drawImageAtPosition(t,A),t.restore(),this._drawImageLabel(t,o,C,i,n),this.updateBoundingBox(e,g)}},{key:"updateBoundingBox",value:function(t,e){"top-left"===this.options.shapeProperties.coordinateOrigin?(this.boundingBox.top=e,this.boundingBox.left=t,this.boundingBox.right=t+2*this.options.size,this.boundingBox.bottom=e+2*this.options.size):(this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),.5*this.width}}]),g}(zb);var Lb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,g)){var n,A;this.labelModule.getTextSize(t,e,g);var o=2*i.size;this.width=null!==(n=this.customSizeWidth)&&void 0!==n?n:o,this.height=null!==(A=this.customSizeHeight)&&void 0!==A?A:o,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,g,i,n,A,o,C){var I,r=this;return this.resize(t,A,o,C),this.left=i-this.width/2,this.top=n-this.height/2,this.initContextForDraw(t,C),(I=e,Object.prototype.hasOwnProperty.call(Yi,I)?Yi[I]:function(t){for(var e=arguments.length,g=new Array(e>1?e-1:0),i=1;i<e;i++)g[i-1]=arguments[i];CanvasRenderingContext2D.prototype[I].call(t,g)})(t,i,n,C.size),this.performFill(t,C),void 0!==this.options.icon&&void 0!==this.options.icon.code&&(t.font=(A?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",t.fillText(this.options.icon.code,i,n)),{drawExternalLabel:function(){if(void 0!==r.options.label){r.labelModule.calculateLabelSize(t,A,o,i,n,"hanging");var e=n+.5*r.height+.5*r.labelModule.size.height;r.labelModule.draw(t,i,e,A,o,"hanging")}r.updateBoundingBox(i,n)}}}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),g}(Bb);function Zb(t,e){var g=fc(t);if(nm){var i=nm(t);e&&(i=ju(i).call(i,(function(e){return um(t,e).enumerable}))),g.push.apply(g,i)}return g}function Gb(t){for(var e=1;e<arguments.length;e++){var g,i,n=null!=arguments[e]?arguments[e]:{};e%2?Pc(g=Zb(Object(n),!0)).call(g,(function(e){Tm(t,e,n[e])})):vm?Em(t,vm(n)):Pc(i=Zb(Object(n))).call(i,(function(e){Om(t,e,um(n,e))}))}return t}var Vb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n,A){var o;return nI(this,g),(o=e.call(this,t,i,n,A)).ctxRenderer=A,o}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){this.resize(t,i,n,A),this.left=e-this.width/2,this.top=g-this.height/2,t.save();var o=this.ctxRenderer({ctx:t,id:this.options.id,x:e,y:g,state:{selected:i,hover:n},style:Gb({},A),label:this.options.label});if(null!=o.drawNode&&o.drawNode(),t.restore(),o.drawExternalLabel){var C=o.drawExternalLabel;o.drawExternalLabel=function(){t.save(),C(),t.restore()}}return o.nodeDimensions&&(this.customSizeWidth=o.nodeDimensions.width,this.customSizeHeight=o.nodeDimensions.height),o}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);var Yb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n))._setMargins(n),A}return Cl(g,[{key:"resize",value:function(t,e,g){if(this.needsRefresh(e,g)){var i=this.getDimensionsFromLabel(t,e,g).width+this.margin.right+this.margin.left;this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(t,e,g,i,n,A){this.resize(t,i,n),this.left=e-this.width/2,this.top=g-this.height/2,this.initContextForDraw(t,A),Gi(t,e-this.width/2,g-this.height/2,this.width,this.height),this.performFill(t,A),this.updateBoundingBox(e,g,t,i,n),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,n)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Bb);var Wb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"diamond",4,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);var Ub=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"circle",2,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t){return t&&this.resize(t),this.options.size}}]),g}(Lb);var Hb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,g)){var i=this.getDimensionsFromLabel(t,e,g);this.height=2*i.height,this.width=i.width+i.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,g,i,n,A){this.resize(t,i,n),this.left=e-.5*this.width,this.top=g-.5*this.height,this.initContextForDraw(t,A),Zi(t,this.left,this.top,this.width,this.height),this.performFill(t,A),this.updateBoundingBox(e,g,t,i,n),this.labelModule.draw(t,e,g,i,n)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var g=.5*this.width,i=.5*this.height,n=Math.sin(e)*g,A=Math.cos(e)*i;return g*i/Math.sqrt(n*n+A*A)}}]),g}(Bb);var Qb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n))._setMargins(n),A}return Cl(g,[{key:"resize",value:function(t,e,g){this.needsRefresh(e,g)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,g,i,n,A){var o=this;return this.resize(t,i,n),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=g-this.height/2,this._icon(t,e,g,i,n,A),{drawExternalLabel:function(){void 0!==o.options.label&&o.labelModule.draw(t,o.left+o.iconSize.width/2+o.margin.left,g+o.height/2+5,i),o.updateBoundingBox(e,g)}}}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}},{key:"_icon",value:function(t,e,g,i,n,A){var o=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:i?"bold":"",(null!=this.options.icon.weight&&i?5:0)+o+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,A),t.fillText(this.options.icon.code,e,g),this.disableShadow(t,A)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Bb);var Kb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n,A,o){var C;return nI(this,g),(C=e.call(this,t,i,n)).setImages(A,o),C}return Cl(g,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height){var i=2*this.options.size;return this.width=i,void(this.height=i)}this.needsRefresh(e,g)&&this._resizeImage()}},{key:"draw",value:function(t,e,g,i,n,A){t.save(),this.switchImages(i),this.resize();var o=e,C=g;if("top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=e,this.top=g,o+=this.width/2,C+=this.height/2):(this.left=e-this.width/2,this.top=g-this.height/2),!0===this.options.shapeProperties.useBorderWithImage){var I=this.options.borderWidth,r=this.options.borderWidthSelected||2*this.options.borderWidth,s=(i?r:I)/this.body.view.scale;t.lineWidth=Math.min(this.width,s),t.beginPath();var a=i?this.options.color.highlight.border:n?this.options.color.hover.border:this.options.color.border,l=i?this.options.color.highlight.background:n?this.options.color.hover.background:this.options.color.background;void 0!==A.opacity&&(a=cp(a,A.opacity),l=cp(l,A.opacity)),t.strokeStyle=a,t.fillStyle=l,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),Xd(t).call(t),this.performStroke(t,A),t.closePath()}this._drawImageAtPosition(t,A),this._drawImageLabel(t,o,C,i,n),this.updateBoundingBox(e,g),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),"top-left"===this.options.shapeProperties.coordinateOrigin?(this.left=t,this.top=e):(this.left=t-this.width/2,this.top=e-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(zb);var Xb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"square",2,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);var Jb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"hexagon",4,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);var qb=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"star",4,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);var $b=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n))._setMargins(n),A}return Cl(g,[{key:"resize",value:function(t,e,g){this.needsRefresh(e,g)&&(this.textSize=this.labelModule.getTextSize(t,e,g),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,g,i,n,A){this.resize(t,i,n),this.left=e-this.width/2,this.top=g-this.height/2,this.enableShadow(t,A),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,n),this.disableShadow(t,A),this.updateBoundingBox(e,g,t,i,n)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Bb);var tw=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"triangle",3,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);var ew=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"draw",value:function(t,e,g,i,n,A){return this._drawShape(t,"triangleDown",3,e,g,i,n,A)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),g}(Lb);function gw(t,e){var g=fc(t);if(nm){var i=nm(t);e&&(i=ju(i).call(i,(function(e){return um(t,e).enumerable}))),g.push.apply(g,i)}return g}function iw(t){for(var e=1;e<arguments.length;e++){var g,i,n=null!=arguments[e]?arguments[e]:{};e%2?Pc(g=gw(Object(n),!0)).call(g,(function(e){Tm(t,e,n[e])})):vm?Em(t,vm(n)):Pc(i=gw(Object(n))).call(i,(function(e){Om(t,e,um(n,e))}))}return t}var nw=function(){function t(e,g,i,n,A,o){nI(this,t),this.options=mp(A),this.globalOptions=A,this.defaultOptions=o,this.body=g,this.edges=[],this.id=void 0,this.imagelist=i,this.grouplist=n,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new Ib(this.body,this.options,!1),this.setOptions(e)}return Cl(t,[{key:"attachEdge",value:function(t){var e;-1===fd(e=this.edges).call(e,t)&&this.edges.push(t)}},{key:"detachEdge",value:function(t){var e,g,i=fd(e=this.edges).call(e,t);-1!=i&&ru(g=this.edges).call(g,i,1)}},{key:"setOptions",value:function(e){var g=this.options.shape;if(e){if(void 0!==e.color&&(this._localColor=e.color),void 0!==e.id&&(this.id=e.id),void 0===this.id)throw new Error("Node must have an id");t.checkMass(e,this.id),void 0!==e.x&&(null===e.x?(this.x=void 0,this.predefinedPosition=!1):(this.x=Cd(e.x),this.predefinedPosition=!0)),void 0!==e.y&&(null===e.y?(this.y=void 0,this.predefinedPosition=!1):(this.y=Cd(e.y),this.predefinedPosition=!0)),void 0!==e.size&&(this.baseSize=e.size),void 0!==e.value&&(e.value=jm(e.value)),t.parseOptions(this.options,e,!0,this.globalOptions,this.grouplist);var i=[e,this.options,this.defaultOptions];return this.chooser=Wm("node",i),this._load_images(),this.updateLabelModule(e),void 0!==e.opacity&&t.checkOpacity(e.opacity)&&(this.options.opacity=e.opacity),this.updateShape(g),void 0!==e.hidden||void 0!==e.physics}}},{key:"_load_images",value:function(){if(("circularImage"===this.options.shape||"image"===this.options.shape)&&void 0===this.options.image)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(void 0!==this.options.image){if(void 0===this.imagelist)throw new Error("Internal Error: No images provided");if("string"==typeof this.options.image)this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(void 0===this.options.image.unselected)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),void 0!==this.options.image.selected?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var t={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?!0===this.chooser?this.selected?(null!=this.options.borderWidthSelected?t.borderWidth=this.options.borderWidthSelected:t.borderWidth*=2,t.color=this.options.color.highlight.background,t.borderColor=this.options.color.highlight.border,t.shadow=this.options.shadow.enabled):this.hover&&(t.color=this.options.color.hover.background,t.borderColor=this.options.color.hover.border,t.shadow=this.options.shadow.enabled):"function"==typeof this.chooser&&(this.chooser(t,this.options.id,this.selected,this.hover),!1===t.shadow&&(t.shadowColor===this.options.shadow.color&&t.shadowSize===this.options.shadow.size&&t.shadowX===this.options.shadow.x&&t.shadowY===this.options.shadow.y||(t.shadow=!0))):t.shadow=this.options.shadow.enabled,void 0!==this.options.opacity){var e=this.options.opacity;t.borderColor=cp(t.borderColor,e),t.color=cp(t.color,e),t.shadowColor=cp(t.shadowColor,e)}return t}},{key:"updateLabelModule",value:function(e){void 0!==this.options.label&&null!==this.options.label||(this.options.label=""),t.updateGroupOptions(this.options,iw(iw({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);var g=this.grouplist.get(this.options.group,!1),i=[e,this.options,g,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(t){if(t===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new _b(this.options,this.body,this.labelModule);break;case"circle":this.shape=new Fb(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new jb(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new Vb(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new Yb(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new Wb(this.options,this.body,this.labelModule);break;case"dot":this.shape=new Ub(this.options,this.body,this.labelModule);break;case"ellipse":default:this.shape=new Hb(this.options,this.body,this.labelModule);break;case"icon":this.shape=new Qb(this.options,this.body,this.labelModule);break;case"image":this.shape=new Kb(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new Xb(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new Jb(this.options,this.body,this.labelModule);break;case"star":this.shape=new qb(this.options,this.body,this.labelModule);break;case"text":this.shape=new $b(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new tw(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new ew(this.options,this.body,this.labelModule)}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(t,e){return this.shape.distanceToBorder(t,e)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(t,e,g){if(void 0!==this.options.value){var i=this.options.scaling.customScalingFunction(t,e,g,this.options.value),n=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var A=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+i*A}this.options.size=this.options.scaling.min+i*n}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(t){var e=this.getFormattingValues();return this.shape.draw(t,this.x,this.y,this.selected,this.hover,e)||{}}},{key:"updateBoundingBox",value:function(t){this.shape.updateBoundingBox(this.x,this.y,t)}},{key:"resize",value:function(t){var e=this.getFormattingValues();this.shape.resize(t,this.selected,this.hover,e)}},{key:"getItemsOnPoint",value:function(t){var e=[];return this.labelModule.visible()&&Um(this.labelModule.getSize(),t)&&e.push({nodeId:this.id,labelId:0}),Um(this.shape.boundingBox,t)&&e.push({nodeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){return this.shape.left<t.right&&this.shape.left+this.shape.width>t.left&&this.shape.top<t.bottom&&this.shape.top+this.shape.height>t.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.left<t.right&&this.shape.boundingBox.right>t.left&&this.shape.boundingBox.top<t.bottom&&this.shape.boundingBox.bottom>t.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"checkCoordinateOrigin",value:function(t){return void 0===t||"center"===t||"top-left"===t}},{key:"updateGroupOptions",value:function(e,g,i){var n;if(void 0!==i){var A=e.group;if(void 0!==g&&void 0!==g.group&&A!==g.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof A||"string"==typeof A&&""!=A){var o=i.get(A);void 0!==o.opacity&&void 0===g.opacity&&(t.checkOpacity(o.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+o.opacity),o.opacity=void 0));var C=ju(n=Ym(g)).call(n,(function(t){return null!=g[t]}));C.push("font"),Cp(C,e,o),e.color=dp(e.color)}}}},{key:"parseOptions",value:function(e,g){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},A=arguments.length>4?arguments[4]:void 0;if(Cp(["color","fixed","shadow"],e,g,i),t.checkMass(g),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==g.opacity&&(t.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0)),g.shapeProperties&&!t.checkCoordinateOrigin(g.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+g.shapeProperties.coordinateOrigin),bp(e,g,"shadow",n),void 0!==g.color&&null!==g.color){var o=dp(g.color);Ap(e.color,o)}else!0===i&&null===g.color&&(e.color=mp(n.color));void 0!==g.fixed&&null!==g.fixed&&("boolean"==typeof g.fixed?(e.fixed.x=g.fixed,e.fixed.y=g.fixed):(void 0!==g.fixed.x&&"boolean"==typeof g.fixed.x&&(e.fixed.x=g.fixed.x),void 0!==g.fixed.y&&"boolean"==typeof g.fixed.y&&(e.fixed.y=g.fixed.y))),!0===i&&null===g.font&&(e.font=mp(n.font)),t.updateGroupOptions(e,g,A),void 0!==g.scaling&&bp(e.scaling,g.scaling,"label",n.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var g="";void 0!==e&&(g=" in node id: "+e),console.error("%cNegative or zero mass disallowed"+g+", setting mass to 1.",Fp),t.mass=1}}}]),t}();function Aw(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}var ow=function(){function t(e,g,i,n){var A,o=this;if(nI(this,t),this.body=e,this.images=g,this.groups=i,this.layoutEngine=n,this.body.functions.createNode=Fi(A=this.create).call(A,this),this.nodesListeners={add:function(t,e){o.add(e.items)},update:function(t,e){o.update(e.items,e.data,e.oldData)},remove:function(t,e){o.remove(e.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,g,i){if(e===t)return.5;var n=1/(e-t);return Math.max(0,(i-t)*n)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=mp(this.defaultOptions),this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t,e,g=this;this.body.emitter.on("refreshNodes",Fi(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",Fi(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){ap(g.nodesListeners,(function(t,e){g.body.data.nodes&&g.body.data.nodes.off(e,t)})),delete g.body.functions.createNode,delete g.nodesListeners.add,delete g.nodesListeners.update,delete g.nodesListeners.remove,delete g.nodesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){if(nw.parseOptions(this.options,t),void 0!==t.opacity&&(Qy(t.opacity)||!Jy(t.opacity)||t.opacity<0||t.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var g=0,i=fc(this.body.nodes);g<i.length;g++){var n=i[g];this.body.nodes[n].updateLabelModule(),this.body.nodes[n].needsRefresh()}if(void 0!==t.size)for(var A in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,A)&&this.body.nodes[A].needsRefresh();void 0===t.hidden&&void 0===t.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.nodes;if(e.isDataViewLike("id",t))this.body.data.nodes=t;else if(Ic(t))this.body.data.nodes=new e.DataSet,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new e.DataSet}if(i&&ap(this.nodesListeners,(function(t,e){i.off(e,t)})),this.body.nodes={},this.body.data.nodes){var n=this;ap(this.nodesListeners,(function(t,e){n.body.data.nodes.on(e,t)}));var A=this.body.data.nodes.getIds();this.add(A,!0)}!1===g&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[],n=0;n<t.length;n++){e=t[n];var A=this.body.data.nodes.get(e),o=this.create(A);i.push(o),this.body.nodes[e]=o}this.layoutEngine.positionInitially(i),!1===g&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t,e,g){for(var i=this.body.nodes,n=!1,A=0;A<t.length;A++){var o=t[A],C=i[o],I=e[A];void 0!==C?C.setOptions(I)&&(n=!0):(n=!0,C=this.create(I),i[o]=C)}n||void 0===g||(n=im(e).call(e,(function(t,e){var i=g[e];return i&&i.level!==t.level}))),!0===n?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){for(var e=this.body.nodes,g=0;g<t.length;g++)delete e[t[g]];this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(t){return new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:nw)(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ap(this.body.nodes,(function(g,i){var n=t.body.data.nodes.get(i);void 0!==n&&(!0===e&&g.setOptions({x:null,y:null}),g.setOptions({fixed:!1}),g.setOptions(n))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===Ic(t)){for(var g=0;g<t.length;g++)if(void 0!==this.body.nodes[t[g]]){var i=this.body.nodes[t[g]];e[t[g]]={x:Math.round(i.x),y:Math.round(i.y)}}}else if(void 0!==this.body.nodes[t]){var n=this.body.nodes[t];e[t]={x:Math.round(n.x),y:Math.round(n.y)}}}else for(var A=0;A<this.body.nodeIndices.length;A++){var o=this.body.nodes[this.body.nodeIndices[A]];e[this.body.nodeIndices[A]]={x:Math.round(o.x),y:Math.round(o.y)}}return e}},{key:"getPosition",value:function(t){if(null==t)throw new TypeError("No id was specified for getPosition method.");if(null==this.body.nodes[t])throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(t));return{x:Math.round(this.body.nodes[t].x),y:Math.round(this.body.nodes[t].y)}}},{key:"storePositions",value:function(){var t,e=[],g=this.body.data.nodes.getDataSet(),i=function(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return Aw(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Aw(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}(g.get());try{for(i.s();!(t=i.n()).done;){var n=t.value,A=n.id,o=this.body.nodes[A],C=Math.round(o.x),I=Math.round(o.y);n.x===C&&n.y===I||e.push({id:A,x:C,y:I})}}catch(t){i.e(t)}finally{i.f()}g.update(e)}},{key:"getBoundingBox",value:function(t){if(void 0!==this.body.nodes[t])return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,e){var g=[];if(void 0!==this.body.nodes[t])for(var i=this.body.nodes[t],n={},A=0;A<i.edges.length;A++){var o=i.edges[A];"to"!==e&&o.toId==i.id?void 0===n[o.fromId]&&(g.push(o.fromId),n[o.fromId]=!0):"from"!==e&&o.fromId==i.id&&void 0===n[o.toId]&&(g.push(o.toId),n[o.toId]=!0)}return g}},{key:"getConnectedEdges",value:function(t){var e=[];if(void 0!==this.body.nodes[t])for(var g=this.body.nodes[t],i=0;i<g.edges.length;i++)e.push(g.edges[i].id);else console.error("NodeId provided for getConnectedEdges does not exist. Provided: ",t);return e}},{key:"moveNode",value:function(t,e,g){var i=this;void 0!==this.body.nodes[t]?(this.body.nodes[t].x=Number(e),this.body.nodes[t].y=Number(g),Zd((function(){i.body.emitter.emit("startSimulation")}),0)):console.error("Node id supplied to moveNode does not exist. Provided: ",t)}}]),t}(),Cw=$t,Iw=M,rw=gt,sw=gg,aw=R,lw=xA;Tg({target:"Reflect",stat:!0},{get:function t(e,g){var i,n,A=arguments.length<3?e:arguments[2];return sw(e)===A?e[g]:(i=aw.f(e,g))?function(t){return void 0!==t&&(Cw(t,"value")||Cw(t,"writable"))}(i)?i.value:void 0===i.get?void 0:Iw(i.get,A):rw(n=lw(e))?t(n,g,A):void 0}});var cw=n(it.Reflect.get),uw=n(cm);function dw(){var t;return dw="undefined"!=typeof Reflect&&cw?Db(t=cw).call(t):function(t,e,g){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Mb(t)););return t}(t,e);if(i){var n=uw(i,e);return n.get?n.get.call(arguments.length<3?t:g):n.value}},dw.apply(this,arguments)}var hw=Tg,fw=Math.hypot,pw=Math.abs,vw=Math.sqrt;hw({target:"Math",stat:!0,arity:2,forced:!!fw&&fw(1/0,NaN)!==1/0},{hypot:function(t,e){for(var g,i,n=0,A=0,o=arguments.length,C=0;A<o;)C<(g=pw(arguments[A++]))?(n=n*(i=C/g)*i+1,C=g):n+=g>0?(i=g/C)*i:g;return C===1/0?1/0:C*vw(n)}});var yw=n(it.Math.hypot);function mw(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}var bw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"transform",value:function(t,e){Ic(t)||(t=[t]);for(var g=e.point.x,i=e.point.y,n=e.angle,A=e.length,o=0;o<t.length;++o){var C=t[o],I=C.x*Math.cos(n)-C.y*Math.sin(n),r=C.x*Math.sin(n)+C.y*Math.cos(n);C.x=g+A*I,C.y=i+A*r}}},{key:"drawPath",value:function(t,e){t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var g=1;g<e.length;++g)t.lineTo(e[g].x,e[g].y);t.closePath()}}]),t}(),ww=function(t){Sb(g,t);var e=mw(g);function g(){return nI(this,g),e.apply(this,arguments)}return Cl(g,null,[{key:"draw",value:function(t,e){if(e.image){t.save(),t.translate(e.point.x,e.point.y),t.rotate(Math.PI/2+e.angle);var g=null!=e.imageWidth?e.imageWidth:e.image.width,i=null!=e.imageHeight?e.imageHeight:e.image.height;e.image.drawImageAtPosition(t,1,-g/2,0,g,i),t.restore()}return!1}}]),g}(bw),xw=function(t){Sb(g,t);var e=mw(g);function g(){return nI(this,g),e.apply(this,arguments)}return Cl(g,null,[{key:"draw",value:function(t,e){var g=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),g}(bw),kw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Ew=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g={x:-.4,y:0};bw.transform(g,e),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var i=Math.PI,n=e.angle-i/2,A=e.angle+i/2;return t.beginPath(),t.arc(g.x,g.y,.4*e.length,n,A,!1),t.stroke(),!0}}]),t}(),Ow=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g={x:-.3,y:0};bw.transform(g,e),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var i=Math.PI,n=e.angle+i/2,A=e.angle+3*i/2;return t.beginPath(),t.arc(g.x,g.y,.4*e.length,n,A,!1),t.stroke(),!0}}]),t}(),Tw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Dw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Rw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g={x:-.4,y:0};return bw.transform(g,e),ji(t,g.x,g.y,.4*e.length),!0}}]),t}(),Sw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Nw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Pw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Mw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return bw.transform(g,e),bw.drawPath(t,g),!0}}]),t}(),Bw=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"draw",value:function(t,e){var g;switch(e.type&&(g=e.type.toLowerCase()),g){case"image":return ww.draw(t,e);case"circle":return Rw.draw(t,e);case"box":return Nw.draw(t,e);case"crow":return kw.draw(t,e);case"curve":return Ew.draw(t,e);case"diamond":return Pw.draw(t,e);case"inv_curve":return Ow.draw(t,e);case"triangle":return Tw.draw(t,e);case"inv_triangle":return Dw.draw(t,e);case"bar":return Sw.draw(t,e);case"vee":return Mw.draw(t,e);default:return xw.draw(t,e)}}}]),t}();function _w(t,e){var g=fc(t);if(nm){var i=nm(t);e&&(i=ju(i).call(i,(function(e){return um(t,e).enumerable}))),g.push.apply(g,i)}return g}function zw(t){for(var e=1;e<arguments.length;e++){var g,i,n=null!=arguments[e]?arguments[e]:{};e%2?Pc(g=_w(Object(n),!0)).call(g,(function(e){Tm(t,e,n[e])})):vm?Em(t,vm(n)):Pc(i=_w(Object(n))).call(i,(function(e){Om(t,e,um(n,e))}))}return t}var Fw=function(){function t(e,g,i){nI(this,t),this._body=g,this._labelModule=i,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(e),this.fromPoint=this.from,this.toPoint=this.to}return Cl(t,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(t){this.options=t,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(t,e,g,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,n):this._drawLine(t,e,n)}},{key:"_drawLine",value:function(t,e,g,i,n){if(this.from!=this.to)this._line(t,e,g,i,n);else{var A=Hl(this._getCircleData(t),3),o=A[0],C=A[1],I=A[2];this._circle(t,e,o,C,I)}}},{key:"_drawDashedLine",value:function(t,e,g,i,n){t.lineCap="round";var A=Ic(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(A),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,g);else{var o=Hl(this._getCircleData(t),3),C=o[0],I=o[1],r=o[2];this._circle(t,e,C,I,r)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)Vi(t,this.from.x,this.from.y,this.to.x,this.to.y,A);else{var s=Hl(this._getCircleData(t),3),a=s[0],l=s[1],c=s[2];this._circle(t,e,a,l,c)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,g){return this.from!=this.to?this._findBorderPosition(t,e,g):this._findBorderPositionCircle(t,e,g)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,g=Hl(ec(e=this._getCircleData(t)).call(e,0,2),2),i=g[0],n=g[1];return{from:this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var g=Qm(t,this.options.selfReference.angle,e,this.from);return[g.x,g.y,e]}},{key:"_pointOnCircle",value:function(t,e,g,i){var n=2*i*Math.PI;return{x:t+g*Math.cos(n),y:e-g*Math.sin(n)}}},{key:"_findBorderPositionCircle",value:function(t,e,g){var i,n=g.x,A=g.y,o=g.low,C=g.high,I=g.direction,r=this.options.selfReference.size,s=.5*(o+C),a=0;!0===this.options.arrowStrikethrough&&(-1===I?a=this.options.endPointOffset.from:1===I&&(a=this.options.endPointOffset.to));var l=0;do{s=.5*(o+C),i=this._pointOnCircle(n,A,r,s);var c=Math.atan2(t.y-i.y,t.x-i.x),u=t.distanceToBorder(e,c)+a-Math.sqrt(Math.pow(i.x-t.x,2)+Math.pow(i.y-t.y,2));if(Math.abs(u)<.05)break;u>0?I>0?o=s:C=s:I>0?C=s:o=s,++l}while(o<=C&&l<10);return zw(zw({},i),{},{t:s})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var g=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),i=this.from.options.color.highlight.border,n=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(i=cp(this.from.options.color.border,e.opacity),n=cp(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?n=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(i=this.from.options.color.border),g.addColorStop(0,i),g.addColorStop(1,n),g}return"to"===e.inheritsColor?cp(this.to.options.color.border,e.opacity):cp(this.from.options.color.border,e.opacity)}return cp(e.color,e.opacity)}},{key:"_circle",value:function(t,e,g,i,n){this.enableShadow(t,e);var A=0,o=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var C=this.options.selfReference.angle,I=this.options.selfReference.angle+Math.PI,r=this._findBorderPositionCircle(this.from,t,{x:g,y:i,low:C,high:I,direction:-1}),s=this._findBorderPositionCircle(this.from,t,{x:g,y:i,low:C,high:I,direction:1});A=Math.atan2(r.y-i,r.x-g),o=Math.atan2(s.y-i,s.x-g)}t.beginPath(),t.arc(g,i,n,A,o,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,g,i,n,A){if(this.from!=this.to)return this._getDistanceToEdge(t,e,g,i,n,A);var o=Hl(this._getCircleData(void 0),3),C=o[0],I=o[1],r=o[2],s=C-n,a=I-A;return Math.abs(Math.sqrt(s*s+a*a)-r)}},{key:"_getDistanceToLine",value:function(t,e,g,i,n,A){var o=g-t,C=i-e,I=((n-t)*o+(A-e)*C)/(o*o+C*C);I>1?I=1:I<0&&(I=0);var r=t+I*o-n,s=e+I*C-A;return Math.sqrt(r*r+s*s)}},{key:"getArrowData",value:function(t,e,g,i,n,A){var o,C,I,r,s,a,l,c=A.width;"from"===e?(I=this.from,r=this.to,s=A.fromArrowScale<0,a=Math.abs(A.fromArrowScale),l=A.fromArrowType):"to"===e?(I=this.to,r=this.from,s=A.toArrowScale<0,a=Math.abs(A.toArrowScale),l=A.toArrowType):(I=this.to,r=this.from,s=A.middleArrowScale<0,a=Math.abs(A.middleArrowScale),l=A.middleArrowType);var u=15*a+3*c;if(I!=r){var d=u/yw(I.x-r.x,I.y-r.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var h=this._findBorderPosition(I,t,{via:g}),f=this.getPoint(h.t+d*("from"===e?1:-1),g);o=Math.atan2(h.y-f.y,h.x-f.x),C=h}else o=Math.atan2(I.y-r.y,I.x-r.x),C=this._findBorderPosition(I,t);else{var p=(s?-d:d)/2,v=this.getPoint(.5+p,g),y=this.getPoint(.5-p,g);o=Math.atan2(v.y-y.y,v.x-y.x),C=this.getPoint(.5,g)}}else{var m=Hl(this._getCircleData(t),3),b=m[0],w=m[1],x=m[2];if("from"===e){var k=this.options.selfReference.angle,E=this.options.selfReference.angle+Math.PI,O=this._findBorderPositionCircle(this.from,t,{x:b,y:w,low:k,high:E,direction:-1});o=-2*O.t*Math.PI+1.5*Math.PI+.1*Math.PI,C=O}else if("to"===e){var T=this.options.selfReference.angle,D=this.options.selfReference.angle+Math.PI,R=this._findBorderPositionCircle(this.from,t,{x:b,y:w,low:T,high:D,direction:1});o=-2*R.t*Math.PI+1.5*Math.PI-1.1*Math.PI,C=R}else{var S=this.options.selfReference.angle/(2*Math.PI);C=this._pointOnCircle(b,w,x,S),o=-2*S*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:C,core:{x:C.x-.9*u*Math.cos(o),y:C.y-.9*u*Math.sin(o)},angle:o,length:u,type:l}}},{key:"drawArrowHead",value:function(t,e,g,i,n){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,Bw.draw(t,n)&&(this.enableShadow(t,e),Xd(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var g={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=g.strokeStyle,t.lineWidth=g.lineWidth,t.dashes=g.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var g=Ic(e)?e:[5,5];t.setLineDash(g)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function jw(t,e){var g=fc(t);if(nm){var i=nm(t);e&&(i=ju(i).call(i,(function(e){return um(t,e).enumerable}))),g.push.apply(g,i)}return g}function Lw(t){for(var e=1;e<arguments.length;e++){var g,i,n=null!=arguments[e]?arguments[e]:{};e%2?Pc(g=jw(Object(n),!0)).call(g,(function(e){Tm(t,e,n[e])})):vm?Em(t,vm(n)):Pc(i=jw(Object(n))).call(i,(function(e){Om(t,e,um(n,e))}))}return t}var Zw=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"_findBorderPositionBezier",value:function(t,e){var g,i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),A=!1,o=1,C=0,I=this.to,r=this.options.endPointOffset?this.options.endPointOffset.to:0;t.id===this.from.id&&(I=this.from,A=!0,r=this.options.endPointOffset?this.options.endPointOffset.from:0),!1===this.options.arrowStrikethrough&&(r=0);var s=0;do{i=.5*(C+o),g=this.getPoint(i,n);var a=Math.atan2(I.y-g.y,I.x-g.x),l=I.distanceToBorder(e,a)+r-Math.sqrt(Math.pow(g.x-I.x,2)+Math.pow(g.y-I.y,2));if(Math.abs(l)<.2)break;l<0?!1===A?C=i:o=i:!1===A?o=i:C=i,++s}while(C<=o&&s<10);return Lw(Lw({},g),{},{t:i})}},{key:"_getDistanceToBezierEdge",value:function(t,e,g,i,n,A,o){var C,I,r,s,a,l=1e9,c=t,u=e;for(I=1;I<10;I++)r=.1*I,s=Math.pow(1-r,2)*t+2*r*(1-r)*o.x+Math.pow(r,2)*g,a=Math.pow(1-r,2)*e+2*r*(1-r)*o.y+Math.pow(r,2)*i,I>0&&(l=(C=this._getDistanceToLine(c,u,s,a,n,A))<l?C:l),c=s,u=a;return l}},{key:"_bezierCurve",value:function(t,e,g,i){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),null!=g&&null!=g.x?null!=i&&null!=i.x?t.bezierCurveTo(g.x,g.y,i.x,i.y,this.toPoint.x,this.toPoint.y):t.quadraticCurveTo(g.x,g.y,this.toPoint.x,this.toPoint.y):t.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(t,e),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),g}(Fw);var Gw=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n)).via=A.via,A._boundFunction=function(){A.positionBezierNode()},A._body.emitter.on("_repositionBezierNodes",A._boundFunction),A}return Cl(g,[{key:"setOptions",value:function(t){dw(Mb(g.prototype),"setOptions",this).call(this,t);var e=!1;this.options.physics!==t.physics&&(e=!0),this.options=t,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),!0===e&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],void 0===this.from||void 0===this.to||!1===this.options.physics||this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this._body.nodes[this.via.id],this.via=void 0,!0)}},{key:"setupSupportNode",value:function(){if(void 0===this.via){var t="edgeId:"+this.id,e=this._body.functions.createNode({id:t,shape:"circle",physics:!0,hidden:!0});this._body.nodes[t]=e,this.via=e,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(t,e,g){this._bezierCurve(t,e,g)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var g=Hl(this._getCircleData(),3),i=g[0],n=g[1],A=g[2],o=2*Math.PI*(1-t);return{x:i+A*Math.sin(o),y:n+A-A*(1-Math.cos(o))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,g,i,n,A){return this._getDistanceToBezierEdge(t,e,g,i,n,A,this.via)}}]),g}(Zw);var Vw=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"_line",value:function(t,e,g){this._bezierCurve(t,e,g)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,g=this.options.smooth.roundness,i=this.options.smooth.type,n=Math.abs(this.from.x-this.to.x),A=Math.abs(this.from.y-this.to.y);if("discrete"===i||"diagonalCross"===i){var o,C;o=C=n<=A?g*A:g*n,this.from.x>this.to.x&&(o=-o),this.from.y>=this.to.y&&(C=-C);var I=this.from.x+o,r=this.from.y+C;return"discrete"===i&&(n<=A?I=n<g*A?this.from.x:I:r=A<g*n?this.from.y:r),{x:I,y:r}}if("straightCross"===i){var s=(1-g)*n,a=(1-g)*A;return n<=A?(s=0,this.from.y<this.to.y&&(a=-a)):(this.from.x<this.to.x&&(s=-s),a=0),{x:this.to.x+s,y:this.to.y+a}}if("horizontal"===i){var l=(1-g)*n;return this.from.x<this.to.x&&(l=-l),{x:this.to.x+l,y:this.from.y}}if("vertical"===i){var c=(1-g)*A;return this.from.y<this.to.y&&(c=-c),{x:this.from.x,y:this.to.y+c}}if("curvedCW"===i){n=this.to.x-this.from.x,A=this.from.y-this.to.y;var u=Math.sqrt(n*n+A*A),d=Math.PI,h=(Math.atan2(A,n)+(.5*g+.5)*d)%(2*d);return{x:this.from.x+(.5*g+.5)*u*Math.sin(h),y:this.from.y+(.5*g+.5)*u*Math.cos(h)}}if("curvedCCW"===i){n=this.to.x-this.from.x,A=this.from.y-this.to.y;var f=Math.sqrt(n*n+A*A),p=Math.PI,v=(Math.atan2(A,n)+(.5*-g+.5)*p)%(2*p);return{x:this.from.x+(.5*g+.5)*f*Math.sin(v),y:this.from.y+(.5*g+.5)*f*Math.cos(v)}}t=e=n<=A?g*A:g*n,this.from.x>this.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var y=this.from.x+t,m=this.from.y+e;return n<=A?y=this.from.x<=this.to.x?this.to.x<y?this.to.x:y:this.to.x>y?this.to.x:y:m=this.from.y>=this.to.y?this.to.y>m?this.to.y:m:this.to.y<m?this.to.y:m,{x:y,y:m}}},{key:"_findBorderPosition",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,g.via)}},{key:"_getDistanceToEdge",value:function(t,e,g,i,n,A){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,g,i,n,A,o)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),g=t;return{x:Math.pow(1-g,2)*this.fromPoint.x+2*g*(1-g)*e.x+Math.pow(g,2)*this.toPoint.x,y:Math.pow(1-g,2)*this.fromPoint.y+2*g*(1-g)*e.y+Math.pow(g,2)*this.toPoint.y}}}]),g}(Zw);var Yw=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"_getDistanceToBezierEdge2",value:function(t,e,g,i,n,A,o,C){for(var I=1e9,r=t,s=e,a=[0,0,0,0],l=1;l<10;l++){var c=.1*l;a[0]=Math.pow(1-c,3),a[1]=3*c*Math.pow(1-c,2),a[2]=3*Math.pow(c,2)*(1-c),a[3]=Math.pow(c,3);var u=a[0]*t+a[1]*o.x+a[2]*C.x+a[3]*g,d=a[0]*e+a[1]*o.y+a[2]*C.y+a[3]*i;if(l>0){var h=this._getDistanceToLine(r,s,u,d,n,A);I=h<I?h:I}r=u,s=d}return I}}]),g}(Zw);var Ww=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"_line",value:function(t,e,g){var i=g[0],n=g[1];this._bezierCurve(t,e,i,n)}},{key:"_getViaCoordinates",value:function(){var t,e,g,i,n=this.from.x-this.to.x,A=this.from.y-this.to.y,o=this.options.smooth.roundness;return(Math.abs(n)>Math.abs(A)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,i=this.to.y,t=this.from.x-o*n,g=this.to.x+o*n):(e=this.from.y-o*A,i=this.to.y+o*A,t=this.from.x,g=this.to.x),[{x:t,y:e},{x:g,y:i}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,g,i,n,A){var o=Hl(arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),2),C=o[0],I=o[1];return this._getDistanceToBezierEdge2(t,e,g,i,n,A,C,I)}},{key:"getPoint",value:function(t){var e=Hl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),2),g=e[0],i=e[1],n=t,A=[Math.pow(1-n,3),3*n*Math.pow(1-n,2),3*Math.pow(n,2)*(1-n),Math.pow(n,3)];return{x:A[0]*this.fromPoint.x+A[1]*g.x+A[2]*i.x+A[3]*this.toPoint.x,y:A[0]*this.fromPoint.y+A[1]*g.y+A[2]*i.y+A[3]*this.toPoint.y}}}]),g}(Yw);var Uw=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var g=this.to,i=this.from;t.id===this.from.id&&(g=this.from,i=this.to);var n=Math.atan2(g.y-i.y,g.x-i.x),A=g.x-i.x,o=g.y-i.y,C=Math.sqrt(A*A+o*o),I=(C-t.distanceToBorder(e,n))/C;return{x:(1-I)*i.x+I*g.x,y:(1-I)*i.y+I*g.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,g,i,n,A){return this._getDistanceToLine(t,e,g,i,n,A)}}]),g}(Fw),Hw=function(){function t(e,g,i,n,A){if(nI(this,t),void 0===g)throw new Error("No body provided");this.options=mp(n),this.globalOptions=n,this.defaultOptions=A,this.body=g,this.imagelist=i,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new Ib(this.body,this.options,!0),this.setOptions(e)}return Cl(t,[{key:"setOptions",value:function(e){if(e){var g=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=jm(e.value));var i=[e,this.options,this.defaultOptions];return this.chooser=Wm("edge",i),this.updateLabelModule(e),g=this.updateEdgeType()||g,this._setInteractionWidths(),this.connect(),g}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,g=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,i=this.options.color.inherit,n={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:g,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:i?void 0:this.options.color.color,inheritsColor:i,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var A=this.options.selectionWidth;"function"==typeof A?n.width=A(n.width):"number"==typeof A&&(n.width+=A),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.highlight,n.shadow=this.options.shadow.enabled}else if(this.hover){var o=this.options.hoverWidth;"function"==typeof o?n.width=o(n.width):"number"==typeof o&&(n.width+=o),n.width=Math.max(n.width,.3/this.body.view.scale),n.color=this.options.color.hover,n.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(n,this.options.id,this.selected,this.hover),void 0!==n.color&&(n.inheritsColor=!1),!1===n.shadow&&(n.shadowColor===this.options.shadow.color&&n.shadowSize===this.options.shadow.size&&n.shadowX===this.options.shadow.x&&n.shadowY===this.options.shadow.y||(n.shadow=!0)));else n.shadow=this.options.shadow.enabled,n.width=Math.max(n.width,.3/this.body.view.scale);return n}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,g=!0;return void 0!==this.edgeType&&((this.edgeType instanceof Gw&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof Ww&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof Vw&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof Uw&&!1===t.type.enabled)&&(g=!1),!0===g&&(e=this.cleanup())),!0===g?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new Gw(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new Ww(this.options,this.body,this.labelModule):this.edgeType=new Vw(this.options,this.body,this.labelModule):this.edgeType=new Uw(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,g){if(void 0!==this.options.value){var i=this.options.scaling.customScalingFunction(t,e,g,this.options.value),n=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var A=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+i*A}this.options.width=this.options.scaling.min+i*n}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var g=this.edgeType.getViaNode();this.edgeType.drawLine(t,e,this.selected,this.hover,g),this.drawLabel(t,g)}}},{key:"drawArrows",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var g=this.edgeType.getViaNode(),i={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(i.from=this.edgeType.getArrowData(t,"from",g,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=i.from.core),e.fromArrowSrc&&(i.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(i.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(i.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(i.to=this.edgeType.getArrowData(t,"to",g,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=i.to.core),e.toArrowSrc&&(i.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(i.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(i.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(i.middle=this.edgeType.getArrowData(t,"middle",g,this.selected,this.hover,e),e.middleArrowSrc&&(i.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(i.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(i.middle.imageHeight=e.middleArrowImageHeight)),e.fromArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,i.from),e.middleArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,i.middle),e.toArrow&&this.edgeType.drawArrowHead(t,e,this.selected,this.hover,i.to)}}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var g,i=this.from,n=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),i.id!=n.id){this.labelModule.pointToSelf=!1,g=this.edgeType.getPoint(.5,e),t.save();var A=this._getRotation(t);0!=A.angle&&(t.translate(A.x,A.y),t.rotate(A.angle)),this.labelModule.draw(t,g.x,g.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var o=Qm(t,this.options.selfReference.angle,this.options.selfReference.size,i);g=this._pointOnCircle(o.x,o.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,g.x,g.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var g=this._getRotation();Um(this.labelModule.getSize(),t,g)&&e.push({edgeId:this.id,labelId:0})}var i={left:t.x,top:t.y};return this.isOverlappingWith(i)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,g=this.from.y,i=this.to.x,n=this.to.y,A=t.left,o=t.top;return this.edgeType.getDistanceToEdge(e,g,i,n,A,o)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),g=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,g.x,g.y);var i={x:g.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return i;if("horizontal"===this.options.font.align)return i;var n=this.from.y-this.to.y,A=this.from.x-this.to.x,o=Math.atan2(n,A);return(o<-1&&A<0||o>0&&A<0)&&(o+=Math.PI),i.angle=o,i}},{key:"_pointOnCircle",value:function(t,e,g,i){return{x:t+g*Math.cos(i),y:e-g*Math.sin(i)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(op(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],t,e,g),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.from&&(Jy(e.endPointOffset.from)?t.endPointOffset.from=e.endPointOffset.from:(t.endPointOffset.from=void 0!==i.endPointOffset.from?i.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),void 0!==e.endPointOffset&&void 0!==e.endPointOffset.to&&(Jy(e.endPointOffset.to)?t.endPointOffset.to=e.endPointOffset.to:(t.endPointOffset.to=void 0!==i.endPointOffset.to?i.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),Hm(e.label)?t.label=e.label:Hm(t.label)||(t.label=void 0),bp(t,e,"smooth",i),bp(t,e,"shadow",i),bp(t,e,"background",i),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===g&&null===e.dashes&&(t.dashes=yd(i.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),bp(t.scaling,e.scaling,"label",i.scaling)):!0===g&&null===e.scaling&&(t.scaling=yd(i.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var A=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=fd(A).call(A,"to"),t.arrows.middle.enabled=-1!=fd(A).call(A,"middle"),t.arrows.from.enabled=-1!=fd(A).call(A,"from")}else{if("object"!==il(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+wd(e.arrows));bp(t.arrows,e.arrows,"to",i.arrows),bp(t.arrows,e.arrows,"middle",i.arrows),bp(t.arrows,e.arrows,"from",i.arrows)}else!0===g&&null===e.arrows&&(t.arrows=yd(i.arrows));if(void 0!==e.color&&null!==e.color){var o=gp(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,C=t.color;if(n)Ip(C,i.color,!1,g);else for(var I in C)Object.prototype.hasOwnProperty.call(C,I)&&delete C[I];if(gp(C))C.color=C,C.highlight=C,C.hover=C,C.inherit=!1,void 0===o.opacity&&(C.opacity=1);else{var r=!1;void 0!==o.color&&(C.color=o.color,r=!0),void 0!==o.highlight&&(C.highlight=o.highlight,r=!0),void 0!==o.hover&&(C.hover=o.hover,r=!0),void 0!==o.inherit&&(C.inherit=o.inherit),void 0!==o.opacity&&(C.opacity=Math.min(1,Math.max(0,o.opacity))),!0===r?C.inherit=!1:void 0===C.inherit&&(C.inherit="from")}}else!0===g&&null===e.color&&(t.color=mp(i.color));!0===g&&null===e.font&&(t.font=mp(i.font)),Object.prototype.hasOwnProperty.call(e,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),Qw=function(){function t(e,g,i){var n,A=this;nI(this,t),this.body=e,this.images=g,this.groups=i,this.body.functions.createEdge=Fi(n=this.create).call(n,this),this.edgesListeners={add:function(t,e){A.add(e.items)},update:function(t,e){A.update(e.items)},remove:function(t,e){A.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,g,i){if(e===t)return.5;var n=1/(e-t);return Math.max(0,(i-t)*n)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Ip(this.options,this.defaultOptions),this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t,e,g=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var i=!1;for(var n in g.body.edges)if(Object.prototype.hasOwnProperty.call(g.body.edges,n)){var A=g.body.edges[n],o=g.body.data.edges.get(n);if(null!=o){var C=o.smooth;void 0!==C&&!0===C.enabled&&"dynamic"===C.type&&(void 0===t?A.setOptions({smooth:!1}):A.setOptions({smooth:{type:t}}),i=!0)}}!0===e&&!0===i&&g.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){g.reconnectEdges()})),this.body.emitter.on("refreshEdges",Fi(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",Fi(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){ap(g.edgesListeners,(function(t,e){g.body.data.edges&&g.body.data.edges.off(e,t)})),delete g.body.functions.createEdge,delete g.edgesListeners.add,delete g.edgesListeners.update,delete g.edgesListeners.remove,delete g.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){Hw.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var g in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,g)&&(e=this.body.edges[g].updateEdgeType()||e);if(void 0!==t.font)for(var i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&this.body.edges[i].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var g=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.edges;if(e.isDataViewLike("id",t))this.body.data.edges=t;else if(Ic(t))this.body.data.edges=new e.DataSet,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new e.DataSet}if(n&&ap(this.edgesListeners,(function(t,e){n.off(e,t)})),this.body.edges={},this.body.data.edges){ap(this.edgesListeners,(function(t,e){g.body.data.edges.on(e,t)}));var A=this.body.data.edges.getIds();this.add(A,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.body.edges,i=this.body.data.edges,n=0;n<t.length;n++){var A=t[n],o=g[A];o&&o.disconnect();var C=i.get(A,{showInternalIds:!0});g[A]=this.create(C)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t){for(var e=this.body.edges,g=this.body.data.edges,i=!1,n=0;n<t.length;n++){var A=t[n],o=g.get(A),C=e[A];void 0!==C?(C.disconnect(),i=C.setOptions(o)||i,C.connect()):(this.body.edges[A]=this.create(o),i=!0)}!0===i?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var g=this.body.edges;ap(t,(function(t){var e=g[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;ap(this.body.edges,(function(e,g){var i=t.body.data.edges.get(g);void 0!==i&&e.setOptions(i)}))}},{key:"create",value:function(t){return new Hw(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,g=this.body.edges;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t].edges=[]);for(t in g)if(Object.prototype.hasOwnProperty.call(g,t)){var i=g[t];i.from=null,i.to=null,i.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var g=this.body.edges[t];void 0!==g.fromId&&e.push(g.fromId),void 0!==g.toId&&e.push(g.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];ap(this.body.edges,(function(g,i){var n=t.body.nodes[g.toId],A=t.body.nodes[g.fromId];void 0!==n&&!0===n.isCluster||void 0!==A&&!0===A.isCluster||void 0!==n&&void 0!==A||e.push(i)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,g=[];Pc(t).call(t,(function(t,i){void 0===e[i]&&g.push(i)})),this.add(g,!0)}}}]),t}(),Kw=function(){function t(e,g,i){nI(this,t),this.body=e,this.physicsBody=g,this.barnesHutTree,this.setOptions(i),this._rng=Qf("BARNES HUT SOLVER")}return Cl(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,g=this.physicsBody.physicsNodeIndices,i=g.length,n=this._formBarnesHutTree(e,g);this.barnesHutTree=n;for(var A=0;A<i;A++)(t=e[g[A]]).options.mass>0&&this._getForceContributions(n.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){if(t.childrenCount>0){var g=t.centerOfMass.x-e.x,i=t.centerOfMass.y-e.y,n=Math.sqrt(g*g+i*i);n*t.calcSize>this.thetaInversed?this._calculateForces(n,g,i,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(n,g,i,e,t)}}},{key:"_calculateForces",value:function(t,e,g,i,n){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&i.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*i.shape.radius,t-i.shape.radius));var A=this.options.gravitationalConstant*n.mass*i.options.mass/Math.pow(t,3),o=e*A,C=g*A;this.physicsBody.forces[i.id].x+=o,this.physicsBody.forces[i.id].y+=C}},{key:"_formBarnesHutTree",value:function(t,e){for(var g,i=e.length,n=t[e[0]].x,A=t[e[0]].y,o=t[e[0]].x,C=t[e[0]].y,I=1;I<i;I++){var r=t[e[I]],s=r.x,a=r.y;r.options.mass>0&&(s<n&&(n=s),s>o&&(o=s),a<A&&(A=a),a>C&&(C=a))}var l=Math.abs(o-n)-Math.abs(C-A);l>0?(A-=.5*l,C+=.5*l):(n+=.5*l,o-=.5*l);var c=Math.max(1e-5,Math.abs(o-n)),u=.5*c,d=.5*(n+o),h=.5*(A+C),f={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:d-u,maxX:d+u,minY:h-u,maxY:h+u},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(f.root);for(var p=0;p<i;p++)(g=t[e[p]]).options.mass>0&&this._placeInTree(f.root,g);return f}},{key:"_updateBranchMass",value:function(t,e){var g=t.centerOfMass,i=t.mass+e.options.mass,n=1/i;g.x=g.x*t.mass+e.x*e.options.mass,g.x*=n,g.y=g.y*t.mass+e.y*e.options.mass,g.y*=n,t.mass=i;var A=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidth<A?A:t.maxWidth}},{key:"_placeInTree",value:function(t,e,g){1==g&&void 0!==g||this._updateBranchMass(t,e);var i,n=t.children.NW.range;i=n.maxX>e.x?n.maxY>e.y?"NW":"SW":n.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,i)}},{key:"_placeInRegion",value:function(t,e,g){var i=t.children[g];switch(i.childrenCount){case 0:i.children.data=e,i.childrenCount=1,this._updateBranchMass(i,e);break;case 1:i.children.data.x===e.x&&i.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(i),this._placeInTree(i,e));break;case 4:this._placeInTree(i,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var g,i,n,A,o=.5*t.size;switch(e){case"NW":g=t.range.minX,i=t.range.minX+o,n=t.range.minY,A=t.range.minY+o;break;case"NE":g=t.range.minX+o,i=t.range.maxX,n=t.range.minY,A=t.range.minY+o;break;case"SW":g=t.range.minX,i=t.range.minX+o,n=t.range.minY+o,A=t.range.maxY;break;case"SE":g=t.range.minX+o,i=t.range.maxX,n=t.range.minY+o,A=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:g,maxX:i,minY:n,maxY:A},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,g){void 0===g&&(g="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=g,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),Xw=function(){function t(e,g,i){nI(this,t),this._rng=Qf("REPULSION SOLVER"),this.body=e,this.physicsBody=g,this.setOptions(i)}return Cl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,g,i,n,A,o,C,I=this.body.nodes,r=this.physicsBody.physicsNodeIndices,s=this.physicsBody.forces,a=this.options.nodeDistance,l=-2/3/a,c=0;c<r.length-1;c++){o=I[r[c]];for(var u=c+1;u<r.length;u++)t=(C=I[r[u]]).x-o.x,e=C.y-o.y,0===(g=Math.sqrt(t*t+e*e))&&(t=g=.1*this._rng()),g<2*a&&(A=g<.5*a?1:l*g+1.3333333333333333,i=t*(A/=g),n=e*A,s[o.id].x-=i,s[o.id].y-=n,s[C.id].x+=i,s[C.id].y+=n)}}}]),t}(),Jw=function(){function t(e,g,i){nI(this,t),this.body=e,this.physicsBody=g,this.setOptions(i)}return Cl(t,[{key:"setOptions",value:function(t){this.options=t,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var t=this.body.nodes,e=this.physicsBody.physicsNodeIndices,g=this.physicsBody.forces,i=this.options.nodeDistance,n=0;n<e.length-1;n++)for(var A=t[e[n]],o=n+1;o<e.length;o++){var C=t[e[o]];if(A.level===C.level){var I=i+this.overlapAvoidanceFactor*((A.shape.radius||0)/2+(C.shape.radius||0)/2),r=C.x-A.x,s=C.y-A.y,a=Math.sqrt(r*r+s*s),l=void 0;l=a<I?-Math.pow(.05*a,2)+Math.pow(.05*I,2):0,0!==a&&(l/=a);var c=r*l,u=s*l;g[A.id].x-=c,g[A.id].y-=u,g[C.id].x+=c,g[C.id].y+=u}}}}]),t}(),qw=function(){function t(e,g,i){nI(this,t),this.body=e,this.physicsBody=g,this.setOptions(i)}return Cl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,g,i,n,A=this.physicsBody.physicsEdgeIndices,o=this.body.edges,C=0;C<A.length;C++)!0===(e=o[A[C]]).connected&&e.toId!==e.fromId&&void 0!==this.body.nodes[e.toId]&&void 0!==this.body.nodes[e.fromId]&&(void 0!==e.edgeType.via?(t=void 0===e.options.length?this.options.springLength:e.options.length,g=e.to,i=e.edgeType.via,n=e.from,this._calculateSpringForce(g,i,.5*t),this._calculateSpringForce(i,n,.5*t)):(t=void 0===e.options.length?1.5*this.options.springLength:e.options.length,this._calculateSpringForce(e.from,e.to,t)))}},{key:"_calculateSpringForce",value:function(t,e,g){var i=t.x-e.x,n=t.y-e.y,A=Math.max(Math.sqrt(i*i+n*n),.01),o=this.options.springConstant*(g-A)/A,C=i*o,I=n*o;void 0!==this.physicsBody.forces[t.id]&&(this.physicsBody.forces[t.id].x+=C,this.physicsBody.forces[t.id].y+=I),void 0!==this.physicsBody.forces[e.id]&&(this.physicsBody.forces[e.id].x-=C,this.physicsBody.forces[e.id].y-=I)}}]),t}(),$w=function(){function t(e,g,i){nI(this,t),this.body=e,this.physicsBody=g,this.setOptions(i)}return Cl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,g,i,n,A,o,C,I,r,s=this.body.edges,a=.5,l=this.physicsBody.physicsEdgeIndices,c=this.physicsBody.physicsNodeIndices,u=this.physicsBody.forces,d=0;d<c.length;d++){var h=c[d];u[h].springFx=0,u[h].springFy=0}for(var f=0;f<l.length;f++)!0===(e=s[l[f]]).connected&&(t=void 0===e.options.length?this.options.springLength:e.options.length,g=e.from.x-e.to.x,i=e.from.y-e.to.y,C=0===(C=Math.sqrt(g*g+i*i))?.01:C,n=g*(o=this.options.springConstant*(t-C)/C),A=i*o,e.to.level!=e.from.level?(void 0!==u[e.toId]&&(u[e.toId].springFx-=n,u[e.toId].springFy-=A),void 0!==u[e.fromId]&&(u[e.fromId].springFx+=n,u[e.fromId].springFy+=A)):(void 0!==u[e.toId]&&(u[e.toId].x-=a*n,u[e.toId].y-=a*A),void 0!==u[e.fromId]&&(u[e.fromId].x+=a*n,u[e.fromId].y+=a*A)));o=1;for(var p=0;p<c.length;p++){var v=c[p];I=Math.min(o,Math.max(-o,u[v].springFx)),r=Math.min(o,Math.max(-o,u[v].springFy)),u[v].x+=I,u[v].y+=r}for(var y=0,m=0,b=0;b<c.length;b++){var w=c[b];y+=u[w].x,m+=u[w].y}for(var x=y/c.length,k=m/c.length,E=0;E<c.length;E++){var O=c[E];u[O].x-=x,u[O].y-=k}}}]),t}(),tx=function(){function t(e,g,i){nI(this,t),this.body=e,this.physicsBody=g,this.setOptions(i)}return Cl(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,g,i,n=this.body.nodes,A=this.physicsBody.physicsNodeIndices,o=this.physicsBody.forces,C=0;C<A.length;C++)t=-(i=n[A[C]]).x,e=-i.y,g=Math.sqrt(t*t+e*e),this._calculateForces(g,t,e,o,i)}},{key:"_calculateForces",value:function(t,e,g,i,n){var A=0===t?0:this.options.centralGravity/t;i[n.id].x=e*A,i[n.id].y=g*A}}]),t}();var ex=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){var A;return nI(this,g),(A=e.call(this,t,i,n))._rng=Qf("FORCE ATLAS 2 BASED REPULSION SOLVER"),A}return Cl(g,[{key:"_calculateForces",value:function(t,e,g,i,n){0===t&&(e=t=.1*this._rng()),this.overlapAvoidanceFactor<1&&i.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*i.shape.radius,t-i.shape.radius));var A=i.edges.length+1,o=this.options.gravitationalConstant*n.mass*i.options.mass*A/Math.pow(t,2),C=e*o,I=g*o;this.physicsBody.forces[i.id].x+=C,this.physicsBody.forces[i.id].y+=I}}]),g}(Kw);var gx=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n){return nI(this,g),e.call(this,t,i,n)}return Cl(g,[{key:"_calculateForces",value:function(t,e,g,i,n){if(t>0){var A=n.edges.length+1,o=this.options.centralGravity*A*n.options.mass;i[n.id].x=e*o,i[n.id].y=g*o}}}]),g}(tx),ix=function(){function t(e){nI(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},fi(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Cp(["stabilization"],this.options,t),bp(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||Qy(e.x))&&(e.x=0),("number"!=typeof e.y||Qy(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new ex(this.body,this.physicsBody,t),this.edgesSolver=new qw(this.body,this.physicsBody,t),this.gravitySolver=new gx(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new Xw(this.body,this.physicsBody,t),this.edgesSolver=new qw(this.body,this.physicsBody,t),this.gravitySolver=new tx(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new Jw(this.body,this.physicsBody,t),this.edgesSolver=new $w(this.body,this.physicsBody,t),this.gravitySolver=new tx(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new Kw(this.body,this.physicsBody,t),this.edgesSolver=new qw(this.body,this.physicsBody,t),this.gravitySolver=new tx(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=Fi(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=mc();this.physicsTick(),(mc()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&Zd((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/1.2))}},{key:"physicsTick",value:function(){this._startStabilizing(),!0!==this.stabilized&&(!0===this.adaptiveTimestep&&!0===this.adaptiveTimestepEnabled?(this.adaptiveCounter%this.adaptiveInterval==0?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1):(this.timestep=this.options.timestep,this.physicsStep()),!0===this.stabilized&&this.revert(),this.stabilizationIterations++)}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var t=this.body.nodes,e=this.body.edges;for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&!0===t[g].options.physics&&this.physicsBody.physicsNodeIndices.push(t[g].id);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&!0===e[i].options.physics&&this.physicsBody.physicsEdgeIndices.push(e[i].id);for(var n=0;n<this.physicsBody.physicsNodeIndices.length;n++){var A=this.physicsBody.physicsNodeIndices[n];this.physicsBody.forces[A]={x:0,y:0},void 0===this.physicsBody.velocities[A]&&(this.physicsBody.velocities[A]={x:0,y:0})}for(var o in this.physicsBody.velocities)void 0===t[o]&&delete this.physicsBody.velocities[o]}},{key:"revert",value:function(){var t=fc(this.previousStates),e=this.body.nodes,g=this.physicsBody.velocities;this.referenceState={};for(var i=0;i<t.length;i++){var n=t[i];void 0!==e[n]?!0===e[n].options.physics&&(this.referenceState[n]={positions:{x:e[n].x,y:e[n].y}},g[n].x=this.previousStates[n].vx,g[n].y=this.previousStates[n].vy,e[n].x=this.previousStates[n].x,e[n].y=this.previousStates[n].y):delete this.previousStates[n]}}},{key:"_evaluateStepQuality",value:function(){var t,e,g=this.body.nodes,i=this.referenceState;for(var n in this.referenceState)if(Object.prototype.hasOwnProperty.call(this.referenceState,n)&&void 0!==g[n]&&(t=g[n].x-i[n].positions.x,e=g[n].y-i[n].positions.y,Math.sqrt(Math.pow(t,2)+Math.pow(e,2))>.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,g=0,i=0;i<t.length;i++){var n=t[i],A=this._performStep(n);e=Math.max(e,A),g+=A}this.adaptiveTimestepEnabled=g/t.length<5,this.stabilized=e<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(t,e,g){t+=(e-this.modelOptions.damping*t)/g*this.timestep;var i=this.options.maxVelocity||1e9;return Math.abs(t)>i&&(t=t>0?i:-i),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],g=this.physicsBody.forces[t];this.options.wind&&(g.x+=this.options.wind.x,g.y+=this.options.wind.y);var i=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:i.x,vy:i.y},!1===e.options.fixed.x?(i.x=this.calculateComponentVelocity(i.x,g.x,e.options.mass),e.x+=i.x*this.timestep):(g.x=0,i.x=0),!1===e.options.fixed.y?(i.y=this.calculateComponentVelocity(i.y,g.y,e.options.mass),e.y+=i.y*this.timestep):(g.y=0,i.y=0),Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&t[e].x&&t[e].y){var g=t[e].options.fixed;this.freezeCache[e]={x:g.x,y:g.y},g.x=!0,g.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,Zd((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations<t.targetIterations},g=function(){t.body.emitter.emit("stabilizationProgress",{iterations:t.stabilizationIterations,total:t.targetIterations})};this._startStabilizing()&&g();for(var i,n=0;e()&&n<this.options.stabilization.updateInterval;)this.physicsTick(),n++;g(),e()?Zd(Fi(i=this._stabilizationBatch).call(i,this),0):this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),!0===this.options.stabilization.fit&&this.body.emitter.emit("fit"),!0===this.options.stabilization.onlyDynamicEdges&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),!0===this.stabilized?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(t){for(var e=0;e<this.physicsBody.physicsNodeIndices.length;e++){var g=this.physicsBody.physicsNodeIndices[e],i=this.body.nodes[g],n=this.physicsBody.forces[g],A=Math.sqrt(Math.pow(n.x,2)+Math.pow(n.x,2)),o=Math.min(Math.max(5,A),15),C=3*o,I=pp((180-180*Math.min(1,Math.max(0,.03*A)))/360,1,1),r={x:i.x+20*n.x,y:i.y+20*n.y};t.lineWidth=o,t.strokeStyle=I,t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(r.x,r.y),t.stroke();var s=Math.atan2(n.y,n.x);t.fillStyle=I,Bw.draw(t,{type:"arrow",point:r,angle:s,length:C}),Xd(t).call(t)}}}]),t}();let nx;const Ax=new Uint8Array(16);function ox(){if(!nx&&(nx="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nx(Ax)}const Cx=[];for(let t=0;t<256;++t)Cx.push((t+256).toString(16).slice(1));var Ix={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function rx(t,e,g){if(Ix.randomUUID&&!e&&!t)return Ix.randomUUID();const i=(t=t||{}).random||(t.rng||ox)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){g=g||0;for(let t=0;t<16;++t)e[g+t]=i[t];return e}return function(t,e=0){return Cx[t[e+0]]+Cx[t[e+1]]+Cx[t[e+2]]+Cx[t[e+3]]+"-"+Cx[t[e+4]]+Cx[t[e+5]]+"-"+Cx[t[e+6]]+Cx[t[e+7]]+"-"+Cx[t[e+8]]+Cx[t[e+9]]+"-"+Cx[t[e+10]]+Cx[t[e+11]]+Cx[t[e+12]]+Cx[t[e+13]]+Cx[t[e+14]]+Cx[t[e+15]]}(i)}var sx=function(){function t(){nI(this,t)}return Cl(t,null,[{key:"getRange",value:function(t){var e,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,n=-1e9,A=1e9,o=-1e9;if(g.length>0)for(var C=0;C<g.length;C++)A>(e=t[g[C]]).shape.boundingBox.left&&(A=e.shape.boundingBox.left),o<e.shape.boundingBox.right&&(o=e.shape.boundingBox.right),i>e.shape.boundingBox.top&&(i=e.shape.boundingBox.top),n<e.shape.boundingBox.bottom&&(n=e.shape.boundingBox.bottom);return 1e9===A&&-1e9===o&&1e9===i&&-1e9===n&&(i=0,n=0,A=0,o=0),{minX:A,maxX:o,minY:i,maxY:n}}},{key:"getRangeCore",value:function(t){var e,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,n=-1e9,A=1e9,o=-1e9;if(g.length>0)for(var C=0;C<g.length;C++)A>(e=t[g[C]]).x&&(A=e.x),o<e.x&&(o=e.x),i>e.y&&(i=e.y),n<e.y&&(n=e.y);return 1e9===A&&-1e9===o&&1e9===i&&-1e9===n&&(i=0,n=0,A=0,o=0),{minX:A,maxX:o,minY:i,maxY:n}}},{key:"findCenter",value:function(t){return{x:.5*(t.maxX+t.minX),y:.5*(t.maxY+t.minY)}}},{key:"cloneOptions",value:function(t,e){var g={};return void 0===e||"node"===e?(Ip(g,t.options,!0),g.x=t.x,g.y=t.y,g.amountOfConnections=t.edges.length):Ip(g,t.options,!0),g}}]),t}();var ax=function(t){Sb(g,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}(g);function g(t,i,n,A,o,C){var I;return nI(this,g),(I=e.call(this,t,i,n,A,o,C)).isCluster=!0,I.containedNodes={},I.containedEdges={},I}return Cl(g,[{key:"_openChildCluster",value:function(t){var e=this,g=this.body.nodes[t];if(void 0===this.containedNodes[t])throw new Error("node with id: "+t+" not in current cluster");if(!g.isCluster)throw new Error("node with id: "+t+" is not a cluster");delete this.containedNodes[t],ap(g.edges,(function(t){delete e.containedEdges[t.id]})),ap(g.containedNodes,(function(t,g){e.containedNodes[g]=t})),g.containedNodes={},ap(g.containedEdges,(function(t,g){e.containedEdges[g]=t})),g.containedEdges={},ap(g.edges,(function(t){ap(e.edges,(function(g){var i,n,A=fd(i=g.clusteringEdgeReplacingIds).call(i,t.id);-1!==A&&(ap(t.clusteringEdgeReplacingIds,(function(t){g.clusteringEdgeReplacingIds.push(t),e.body.edges[t].edgeReplacedById=g.id})),ru(n=g.clusteringEdgeReplacingIds).call(n,A,1))}))})),g.edges=[]}}]),g}(nw),lx=function(){function t(e){var g=this;nI(this,t),this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},fi(this.options,this.defaultOptions),this.body.emitter.on("_resetData",(function(){g.clusteredNodes={},g.clusteredEdges={}}))}return Cl(t,[{key:"clusterByHubsize",value:function(t,e){void 0===t?t=this._getHubSize():"object"===il(t)&&(e=this._checkOptions(t),t=this._getHubSize());for(var g=[],i=0;i<this.body.nodeIndices.length;i++){var n=this.body.nodes[this.body.nodeIndices[i]];n.edges.length>=t&&g.push(n.id)}for(var A=0;A<g.length;A++)this.clusterByConnection(g[A],e,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var i={},n={};ap(this.body.nodes,(function(g,A){g.options&&!0===e.joinCondition(g.options)&&(i[A]=g,ap(g.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(n[e.id]=e)})))})),this._cluster(i,n,e,g)}},{key:"clusterByEdgeCount",value:function(t,e){var g=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var n,A,o,C=[],I={},r=function(){var i={},r={},a=g.body.nodeIndices[s],l=g.body.nodes[a];if(void 0===I[a]){o=0,A=[];for(var c=0;c<l.edges.length;c++)n=l.edges[c],void 0===g.clusteredEdges[n.id]&&(n.toId!==n.fromId&&o++,A.push(n));if(o===t){for(var u=function(t){if(void 0===e.joinCondition||null===e.joinCondition)return!0;var g=sx.cloneOptions(t);return e.joinCondition(g)},d=!0,h=0;h<A.length;h++){n=A[h];var f=g._getConnectedId(n,a);if(!u(l)){d=!1;break}r[n.id]=n,i[a]=l,i[f]=g.body.nodes[f],I[a]=!0}if(fc(i).length>0&&fc(r).length>0&&!0===d){var p=function(){for(var t=0;t<C.length;++t)for(var e in i)if(void 0!==C[t].nodes[e])return C[t]}();if(void 0!==p){for(var v in i)void 0===p.nodes[v]&&(p.nodes[v]=i[v]);for(var y in r)void 0===p.edges[y]&&(p.edges[y]=r[y])}else C.push({nodes:i,edges:r})}}}},s=0;s<this.body.nodeIndices.length;s++)r();for(var a=0;a<C.length;a++)this._cluster(C[a].nodes,C[a].edges,e,!1);!0===i&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var g,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var n=this.body.nodes[t];void 0===(e=this._checkOptions(e,n)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=n.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=n.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=n.options.fixed.x,e.clusterNodeProperties.fixed.y=n.options.fixed.y);var A={},o={},C=n.id,I=sx.cloneOptions(n);A[C]=n;for(var r=0;r<n.edges.length;r++){var s=n.edges[r];if(void 0===this.clusteredEdges[s.id]){var a=this._getConnectedId(s,C);if(void 0===this.clusteredNodes[a])if(a!==C)if(void 0===e.joinCondition)o[s.id]=s,A[a]=this.body.nodes[a];else{var l=sx.cloneOptions(this.body.nodes[a]);!0===e.joinCondition(I,l)&&(o[s.id]=s,A[a]=this.body.nodes[a])}else o[s.id]=s}}var c=uc(g=fc(A)).call(g,(function(t){return A[t].id}));for(var u in A)if(Object.prototype.hasOwnProperty.call(A,u))for(var d=A[u],h=0;h<d.edges.length;h++){var f=d.edges[h];fd(c).call(c,this._getConnectedId(f,d.id))>-1&&(o[f.id]=f)}this._cluster(A,o,e,i)}},{key:"_createClusterEdges",value:function(t,e,g,i){for(var n,A,o,C,I,r,s=fc(t),a=[],l=0;l<s.length;l++){o=t[A=s[l]];for(var c=0;c<o.edges.length;c++)n=o.edges[c],void 0===this.clusteredEdges[n.id]&&(n.toId==n.fromId?e[n.id]=n:n.toId==A?(C=g.id,r=I=n.fromId):(C=n.toId,I=g.id,r=C),void 0===t[r]&&a.push({edge:n,fromId:I,toId:C}))}for(var u=[],d=function(t){for(var e=0;e<u.length;e++){var g=u[e],i=t.fromId===g.fromId&&t.toId===g.toId,n=t.fromId===g.toId&&t.toId===g.fromId;if(i||n)return g}return null},h=0;h<a.length;h++){var f=a[h],p=f.edge,v=d(f);null===v?(v=this._createClusteredEdge(f.fromId,f.toId,p,i),u.push(v)):v.clusteringEdgeReplacingIds.push(p.id),this.body.edges[p.id].edgeReplacedById=v.id,this._backupEdgeOptions(p),p.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,g){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=[];for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&void 0!==this.clusteredNodes[A]&&n.push(A);for(var o=0;o<n.length;++o)delete t[n[o]];if(0!=fc(t).length&&(1!=fc(t).length||1==g.clusterNodeProperties.allowSingleNodeCluster)){var C=Ip({},g.clusterNodeProperties);if(void 0!==g.processProperties){var I=[];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=sx.cloneOptions(t[r]);I.push(s)}var a=[];for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)&&"clusterEdge:"!==l.substr(0,12)){var c=sx.cloneOptions(e[l],"edge");a.push(c)}if(!(C=g.processProperties(C,I,a)))throw new Error("The processProperties function does not return properties!")}void 0===C.id&&(C.id="cluster:"+rx());var u=C.id;void 0===C.label&&(C.label="cluster");var d=void 0;void 0===C.x&&(d=this._getClusterPosition(t),C.x=d.x),void 0===C.y&&(void 0===d&&(d=this._getClusterPosition(t)),C.y=d.y),C.id=u;var h=this.body.functions.createNode(C,ax);h.containedNodes=t,h.containedEdges=e,h.clusterEdgeProperties=g.clusterEdgeProperties,this.body.nodes[C.id]=h,this._clusterEdges(t,e,C,g.clusterEdgeProperties),C.id=void 0,!0===i&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(t){void 0===this.clusteredEdges[t.id]&&(this.clusteredEdges[t.id]={physics:t.options.physics})}},{key:"_restoreEdge",value:function(t){var e=this.clusteredEdges[t.id];void 0!==e&&(t.setOptions({physics:e.physics}),delete this.clusteredEdges[t.id])}},{key:"isCluster",value:function(t){return void 0!==this.body.nodes[t]?!0===this.body.nodes[t].isCluster:(console.error("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(t){for(var e,g=fc(t),i=t[g[0]].x,n=t[g[0]].x,A=t[g[0]].y,o=t[g[0]].y,C=1;C<g.length;C++)i=(e=t[g[C]]).x<i?e.x:i,n=e.x>n?e.x:n,A=e.y<A?e.y:A,o=e.y>o?e.y:o;return{x:.5*(i+n),y:.5*(A+o)}}},{key:"openCluster",value:function(t,e){var g=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var i=this.body.nodes[t];if(void 0===i)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==i.isCluster||void 0===i.containedNodes||void 0===i.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var n=this.findNode(t),A=fd(n).call(n,t)-1;if(A>=0){var o=n[A];return this.body.nodes[o]._openChildCluster(t),delete this.body.nodes[t],void(!0===g&&this.body.emitter.emit("_dataChanged"))}var C=i.containedNodes,I=i.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var r={},s={x:i.x,y:i.y};for(var a in C)if(Object.prototype.hasOwnProperty.call(C,a)){var l=this.body.nodes[a];r[a]={x:l.x,y:l.y}}var c=e.releaseFunction(s,r);for(var u in C)if(Object.prototype.hasOwnProperty.call(C,u)){var d=this.body.nodes[u];void 0!==c[u]&&(d.x=void 0===c[u].x?i.x:c[u].x,d.y=void 0===c[u].y?i.y:c[u].y)}}else ap(C,(function(t){!1===t.options.fixed.x&&(t.x=i.x),!1===t.options.fixed.y&&(t.y=i.y)}));for(var h in C)if(Object.prototype.hasOwnProperty.call(C,h)){var f=this.body.nodes[h];f.vx=i.vx,f.vy=i.vy,f.setOptions({physics:!0}),delete this.clusteredNodes[h]}for(var p=[],v=0;v<i.edges.length;v++)p.push(i.edges[v]);for(var y=0;y<p.length;y++){for(var m=p[y],b=this._getConnectedId(m,t),w=this.clusteredNodes[b],x=0;x<m.clusteringEdgeReplacingIds.length;x++){var k=m.clusteringEdgeReplacingIds[x],E=this.body.edges[k];if(void 0!==E)if(void 0!==w){var O=this.body.nodes[w.clusterId];O.containedEdges[E.id]=E,delete I[E.id];var T=E.fromId,D=E.toId;E.toId==b?D=w.clusterId:T=w.clusterId,this._createClusteredEdge(T,D,E,O.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(E)}m.remove()}for(var R in I)Object.prototype.hasOwnProperty.call(I,R)&&this._restoreEdge(I[R]);delete this.body.nodes[t],!0===g&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(t){var e=[];if(!0===this.isCluster(t)){var g=this.body.nodes[t].containedNodes;for(var i in g)Object.prototype.hasOwnProperty.call(g,i)&&e.push(this.body.nodes[i].id)}return e}},{key:"findNode",value:function(t){for(var e,g=[],i=0;void 0!==this.clusteredNodes[t]&&i<100;){if(void 0===(e=this.body.nodes[t]))return[];g.push(e.id),t=this.clusteredNodes[t].clusterId,i++}return void 0===(e=this.body.nodes[t])?[]:(g.push(e.id),Gc(g).call(g),g)}},{key:"updateClusteredNode",value:function(t,e){if(void 0===t)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(void 0===e)throw new Error("No newOptions supplied to updateClusteredNode.");if(void 0===this.body.nodes[t])throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[t].setOptions(e),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(t,e){if(void 0===t)throw new Error("No startEdgeId supplied to updateEdge.");if(void 0===e)throw new Error("No newOptions supplied to updateEdge.");if(void 0===this.body.edges[t])throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var g=this.getClusteredEdges(t),i=0;i<g.length;i++)this.body.edges[g[i]].setOptions(e);this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(t){for(var e=[],g=0;void 0!==t&&void 0!==this.body.edges[t]&&g<100;)e.push(this.body.edges[t].id),t=this.body.edges[t].edgeReplacedById,g++;return Gc(e).call(e),e}},{key:"getBaseEdge",value:function(t){return this.getBaseEdges(t)[0]}},{key:"getBaseEdges",value:function(t){for(var e=[t],g=[],i=[],n=0;e.length>0&&n<100;){var A=e.pop();if(void 0!==A){var o=this.body.edges[A];if(void 0!==o){n++;var C=o.clusteringEdgeReplacingIds;if(void 0===C)i.push(A);else for(var I=0;I<C.length;++I){var r=C[I];-1===fd(e).call(e,C)&&-1===fd(g).call(g,C)&&e.push(r)}g.push(A)}}}return i}},{key:"_getConnectedId",value:function(t,e){return t.toId!=e?t.toId:(t.fromId,t.fromId)}},{key:"_getHubSize",value:function(){for(var t=0,e=0,g=0,i=0,n=0;n<this.body.nodeIndices.length;n++){var A=this.body.nodes[this.body.nodeIndices[n]];A.edges.length>i&&(i=A.edges.length),t+=A.edges.length,e+=Math.pow(A.edges.length,2),g+=1}t/=g;var o=(e/=g)-Math.pow(t,2),C=Math.sqrt(o),I=Math.floor(t+2*C);return I>i&&(I=i),I}},{key:"_createClusteredEdge",value:function(t,e,g,i,n){var A=sx.cloneOptions(g,"edge");Ip(A,i),A.from=t,A.to=e,A.id="clusterEdge:"+rx(),void 0!==n&&Ip(A,n);var o=this.body.functions.createEdge(A);return o.clusteringEdgeReplacingIds=[g.id],o.connect(),this.body.edges[o.id]=o,o}},{key:"_clusterEdges",value:function(t,e,g,i){if(e instanceof Hw){var n=e,A={};A[n.id]=n,e=A}if(t instanceof nw){var o=t,C={};C[o.id]=o,t=C}if(null==g)throw new Error("_clusterEdges: parameter clusterNode required");for(var I in void 0===i&&(i=g.clusterEdgeProperties),this._createClusterEdges(t,e,g,i),e)if(Object.prototype.hasOwnProperty.call(e,I)&&void 0!==this.body.edges[I]){var r=this.body.edges[I];this._backupEdgeOptions(r),r.setOptions({physics:!1})}for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(this.clusteredNodes[s]={clusterId:g.id,node:this.body.nodes[s]},this.body.nodes[s].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var g=e.clusterId;if(void 0!==g)return this.body.nodes[g]}}}},{key:"_filter",value:function(t,e){var g=[];return ap(t,(function(t){e(t)&&g.push(t)})),g}},{key:"_updateState",value:function(){var t,e=this,g=[],i={},n=function(t){ap(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes)Object.prototype.hasOwnProperty.call(this.clusteredNodes,t)&&void 0===this.body.nodes[t]&&g.push(t);n((function(t){for(var e=0;e<g.length;e++)delete t.containedNodes[g[e]]}));for(var A=0;A<g.length;A++)delete this.clusteredNodes[g[A]];ap(this.clusteredEdges,(function(t){var g=e.body.edges[t];void 0!==g&&g.endPointsValid()||(i[t]=t)})),n((function(t){ap(t.containedEdges,(function(t,e){t.endPointsValid()||i[e]||(i[e]=e)}))})),ap(this.body.edges,(function(t,g){var n=!0,A=t.clusteringEdgeReplacingIds;if(void 0!==A){var o=0;ap(A,(function(t){var g=e.body.edges[t];void 0!==g&&g.endPointsValid()&&(o+=1)})),n=o>0}t.endPointsValid()&&n||(i[g]=g)})),n((function(t){ap(i,(function(g){delete t.containedEdges[g],ap(t.edges,(function(n,A){n.id!==g?n.clusteringEdgeReplacingIds=e._filter(n.clusteringEdgeReplacingIds,(function(t){return!i[t]})):t.edges[A]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),ap(i,(function(t){delete e.clusteredEdges[t]})),ap(i,(function(t){delete e.body.edges[t]})),ap(fc(this.body.edges),(function(t){var g=e.body.edges[t],i=e._isClusteredNode(g.fromId)||e._isClusteredNode(g.toId);if(i!==e._isClusteredEdge(g.id))if(i){var n=e._getClusterNodeForNode(g.fromId);void 0!==n&&e._clusterEdges(e.body.nodes[g.fromId],g,n);var A=e._getClusterNodeForNode(g.toId);void 0!==A&&e._clusterEdges(e.body.nodes[g.toId],g,A)}else delete e._clusterEdges[t],e._restoreEdge(g)}));for(var o=!1,C=!0,I=function(){var t=[];n((function(e){var g=fc(e.containedNodes).length,i=!0===e.options.allowSingleNodeCluster;(i&&g<1||!i&&g<2)&&t.push(e.id)}));for(var g=0;g<t.length;++g)e.openCluster(t[g],{},!1);C=t.length>0,o=o||C};C;)I();o&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}(),cx=function(){function t(e,g){var i;nI(this,t),void 0!==window&&(i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===i?function(t){t()}:i,this.body=e,this.canvas=g,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},fi(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=Zd((function(){var t;e.zooming=!1,Fi(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",Fi(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){void 0!==t&&op(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var g,i=window;return!0===this.requiresTimeout?g=Zd(t,e):i.requestAnimationFrame&&(g=i.requestAnimationFrame(t)),g}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(Fi(t=this._renderStep).call(t,this),this.simulationInterval))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var e={drawExternalLabels:null};0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var g=this.canvas.getContext(),i=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;if(g.clearRect(0,0,i,n),0===this.canvas.frame.clientWidth)return;if(g.save(),g.translate(this.body.view.translation.x,this.body.view.translation.y),g.scale(this.body.view.scale,this.body.view.scale),g.beginPath(),this.body.emitter.emit("beforeDrawing",g),g.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(g),!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag){var A=this._drawNodes(g,t).drawExternalLabels;e.drawExternalLabels=A}!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawArrows(g),null!=e.drawExternalLabels&&e.drawExternalLabels(),!1===t&&this._drawSelectionBox(g),g.beginPath(),this.body.emitter.emit("afterDrawing",g),g.closePath(),g.restore(),!0===t&&g.clearRect(0,0,i,n)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,g=this.body.nodes;for(var i in g)Object.prototype.hasOwnProperty.call(g,i)&&((e=g[i]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,g,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.nodes,A=this.body.nodeIndices,o=[],C=[],I=this.canvas.DOMtoCanvas({x:-20,y:-20}),r=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+20,y:this.canvas.frame.canvas.clientHeight+20}),s={top:I.y,left:I.x,bottom:r.y,right:r.x},a=[],l=0;l<A.length;l++)if((e=n[A[l]]).hover)C.push(A[l]);else if(e.isSelected())o.push(A[l]);else if(!0===i){var c=e.draw(t);null!=c.drawExternalLabel&&a.push(c.drawExternalLabel)}else if(!0===e.isBoundingBoxOverlappingWith(s)){var u=e.draw(t);null!=u.drawExternalLabel&&a.push(u.drawExternalLabel)}else e.updateBoundingBox(t,e.selected);var d=o.length,h=C.length;for(g=0;g<d;g++){var f=(e=n[o[g]]).draw(t);null!=f.drawExternalLabel&&a.push(f.drawExternalLabel)}for(g=0;g<h;g++){var p=(e=n[C[g]]).draw(t);null!=p.drawExternalLabel&&a.push(p.drawExternalLabel)}return{drawExternalLabels:function(){for(var t=0,e=a;t<e.length;t++)(0,e[t])()}}}},{key:"_drawEdges",value:function(t){for(var e=this.body.edges,g=this.body.edgeIndices,i=0;i<g.length;i++){var n=e[g[i]];!0===n.connected&&n.draw(t)}}},{key:"_drawArrows",value:function(t){for(var e=this.body.edges,g=this.body.edgeIndices,i=0;i<g.length;i++){var n=e[g[i]];!0===n.connected&&n.drawArrows(t)}}},{key:"_determineBrowserMethod",value:function(){if("undefined"!=typeof window){var t=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,(-1!=fd(t).call(t,"msie 9.0")||-1!=fd(t).call(t,"safari")&&fd(t).call(t,"chrome")<=-1)&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}},{key:"_drawSelectionBox",value:function(t){if(this.body.selectionBox.show){t.beginPath();var e=this.body.selectionBox.position.end.x-this.body.selectionBox.position.start.x,g=this.body.selectionBox.position.end.y-this.body.selectionBox.position.start.y;t.rect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,e,g),t.fillStyle="rgba(151, 194, 252, 0.2)",t.fillRect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,e,g),t.strokeStyle="rgba(151, 194, 252, 1)",t.stroke()}else t.closePath()}}]),t}(),ux=n(it.setInterval);function dx(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)}function hx(t,e){return e.inputHandler=function(t){t.isFinal&&e(t)},t.on("hammer.input",e.inputHandler)}var fx=function(){function t(e){nI(this,t),this.body=e,this.pixelRatio=1,this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this._cleanupCallbacks=[],this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},fi(this.options,this.defaultOptions),this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.once("resize",(function(t){0!==t.width&&(e.body.view.translation.x=.5*t.width),0!==t.height&&(e.body.view.translation.y=.5*t.height)})),this.body.emitter.on("setSize",Fi(t=this.setSize).call(t,this)),this.body.emitter.on("destroy",(function(){e.hammerFrame.destroy(),e.hammer.destroy(),e._cleanUp()}))}},{key:"setOptions",value:function(t){var e=this;if(void 0!==t&&op(["width","height","autoResize"],this.options,t),this._cleanUp(),!0===this.options.autoResize){var g;if(window.ResizeObserver){var i=new ResizeObserver((function(){!0===e.setSize()&&e.body.emitter.emit("_requestRedraw")})),n=this.frame;i.observe(n),this._cleanupCallbacks.push((function(){i.unobserve(n)}))}else{var A=ux((function(){!0===e.setSize()&&e.body.emitter.emit("_requestRedraw")}),1e3);this._cleanupCallbacks.push((function(){clearInterval(A)}))}var o=Fi(g=this._onResize).call(g,this);window.addEventListener("resize",o),this._cleanupCallbacks.push((function(){window.removeEventListener("resize",o)}))}}},{key:"_cleanUp",value:function(){var t,e,g;Pc(t=Gc(e=ru(g=this._cleanupCallbacks).call(g,0)).call(e)).call(t,(function(t){try{t()}catch(t){console.error(t)}}))}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,g=this.cameraState.scale;1!=t&&1!=e?g=.5*this.cameraState.scale*(t+e):1!=t?g=this.cameraState.scale*t:1!=e&&(g=this.cameraState.scale*e),this.body.view.scale=g;var i=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),n={x:i.x-this.cameraState.position.x,y:i.y-this.cameraState.position.y};this.body.view.translation.x+=n.x*this.body.view.scale,this.body.view.translation.y+=n.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==fd(t).call(t,"%")||-1!==fd(t).call(t,"px"))return t;if(-1===fd(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new _p(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:_p.DIRECTION_ALL}),dx(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new _p(this.frame),hx(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var g=!1,i=this.frame.canvas.width,n=this.frame.canvas.height,A=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(A),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},g=!0;else{var o=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),C=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===o&&this.frame.canvas.height===C||this._getCameraState(A),this.frame.canvas.width!==o&&(this.frame.canvas.width=o,g=!0),this.frame.canvas.height!==C&&(this.frame.canvas.height=C,g=!0)}return!0===g&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(i/this.pixelRatio),oldHeight:Math.round(n/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,g}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}(),px=function(){function t(e,g){var i,n,A=this;nI(this,t),this.body=e,this.canvas=g,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",Fi(i=this.fit).call(i,this)),this.body.emitter.on("animationFinished",(function(){A.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",Fi(n=this.releaseNode).call(n,this))}return Cl(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=function(t,e){var g=fi({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},null!=t?t:{});if(!Ic(g.nodes))throw new TypeError("Nodes has to be an array of ids.");if(0===g.nodes.length&&(g.nodes=e),!("number"==typeof g.minZoomLevel&&g.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!("number"==typeof g.maxZoomLevel&&g.minZoomLevel<=g.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return g}(t,this.body.nodeIndices);var g,i,n=this.canvas.frame.canvas.clientWidth,A=this.canvas.frame.canvas.clientHeight;if(0===n||0===A)i=1,g=sx.getRange(this.body.nodes,t.nodes);else if(!0===e){var o=0;for(var C in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,C)&&!0===this.body.nodes[C].predefinedPosition&&(o+=1);if(o>.5*this.body.nodeIndices.length)return void this.fit(t,!1);g=sx.getRange(this.body.nodes,t.nodes),i=12.662/(this.body.nodeIndices.length+7.4147)+.0964822,i*=Math.min(n/600,A/600)}else{this.body.emitter.emit("_resizeNodes"),g=sx.getRange(this.body.nodes,t.nodes);var I=n/(1.1*Math.abs(g.maxX-g.minX)),r=A/(1.1*Math.abs(g.maxY-g.minY));i=I<=r?I:r}i>t.maxZoomLevel?i=t.maxZoomLevel:i<t.minZoomLevel&&(i=t.minZoomLevel);var s={position:sx.findCenter(g),scale:i,animation:t.animation};this.moveTo(s)}},{key:"focus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var g={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=g,e.lockedOnNode=t,this.moveTo(e)}else console.error("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!Jy(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!Jy(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!Jy(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!Jy(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,g,i=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n=i.x-t.position.x,A=i.y-t.position.y;this.targetTranslation={x:this.sourceTranslation.x+n*this.targetScale+t.offset.x,y:this.sourceTranslation.y+A*this.targetScale+t.offset.y},0===t.animation.duration?null!=this.lockedOnNodeId?(this.viewFunction=Fi(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=Fi(g=this._transitionRedraw).call(g,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,g=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i=g.x-t,n=g.y-e,A=this.body.view.translation,o={x:A.x+i*this.body.view.scale+this.lockedOnNodeOffset.x,y:A.y+n*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=o}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e,g=wp[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*g,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*g,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*g},this.easingTime>=1&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId&&(this.viewFunction=Fi(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();function vx(t){var e,g=t&&t.preventDefault||!1,i=t&&t.container||window,n={},A={keydown:{},keyup:{}},o={};for(e=97;e<=122;e++)o[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)o[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)o[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)o["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)o["num"+e]={code:96+e,shift:!1};o["num*"]={code:106,shift:!1},o["num+"]={code:107,shift:!1},o["num-"]={code:109,shift:!1},o["num/"]={code:111,shift:!1},o["num."]={code:110,shift:!1},o.left={code:37,shift:!1},o.up={code:38,shift:!1},o.right={code:39,shift:!1},o.down={code:40,shift:!1},o.space={code:32,shift:!1},o.enter={code:13,shift:!1},o.shift={code:16,shift:void 0},o.esc={code:27,shift:!1},o.backspace={code:8,shift:!1},o.tab={code:9,shift:!1},o.ctrl={code:17,shift:!1},o.alt={code:18,shift:!1},o.delete={code:46,shift:!1},o.pageup={code:33,shift:!1},o.pagedown={code:34,shift:!1},o["="]={code:187,shift:!1},o["-"]={code:189,shift:!1},o["]"]={code:221,shift:!1},o["["]={code:219,shift:!1};var C=function(t){r(t,"keydown")},I=function(t){r(t,"keyup")},r=function(t,e){if(void 0!==A[e][t.keyCode]){for(var i=A[e][t.keyCode],n=0;n<i.length;n++)(void 0===i[n].shift||1==i[n].shift&&1==t.shiftKey||0==i[n].shift&&0==t.shiftKey)&&i[n].fn(t);1==g&&t.preventDefault()}};return n.bind=function(t,e,g){if(void 0===g&&(g="keydown"),void 0===o[t])throw new Error("unsupported key: "+t);void 0===A[g][o[t].code]&&(A[g][o[t].code]=[]),A[g][o[t].code].push({fn:e,shift:o[t].shift})},n.bindAll=function(t,e){for(var g in void 0===e&&(e="keydown"),o)o.hasOwnProperty(g)&&n.bind(g,t,e)},n.getKey=function(t){for(var e in o)if(o.hasOwnProperty(e)){if(1==t.shiftKey&&1==o[e].shift&&t.keyCode==o[e].code)return e;if(0==t.shiftKey&&0==o[e].shift&&t.keyCode==o[e].code)return e;if(t.keyCode==o[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},n.unbind=function(t,e,g){if(void 0===g&&(g="keydown"),void 0===o[t])throw new Error("unsupported key: "+t);if(void 0!==e){var i=[],n=A[g][o[t].code];if(void 0!==n)for(var C=0;C<n.length;C++)n[C].fn==e&&n[C].shift==o[t].shift||i.push(A[g][o[t].code][C]);A[g][o[t].code]=i}else A[g][o[t].code]=[]},n.reset=function(){A={keydown:{},keyup:{}}},n.destroy=function(){A={keydown:{},keyup:{}},i.removeEventListener("keydown",C,!0),i.removeEventListener("keyup",I,!0)},i.addEventListener("keydown",C,!0),i.addEventListener("keyup",I,!0),n}var yx=function(){function t(e,g){var i=this;nI(this,t),this.body=e,this.canvas=g,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",(function(){i.activated=!0,i.configureKeyboardBindings()})),this.body.emitter.on("deactivate",(function(){i.activated=!1,i.configureKeyboardBindings()})),this.body.emitter.on("destroy",(function(){void 0!==i.keycharm&&i.keycharm.destroy()})),this.options={}}return Cl(t,[{key:"setOptions",value:function(t){void 0!==t&&(this.options=t,this.create())}},{key:"create",value:function(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var t=0;t<this.navigationHammers.length;t++)this.navigationHammers[t].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}},{key:"loadNavigationElements",value:function(){var t=this;this.cleanNavigation(),this.navigationDOM={};var e=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],g=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(var i=0;i<e.length;i++){this.navigationDOM[e[i]]=document.createElement("div"),this.navigationDOM[e[i]].className="vis-button vis-"+e[i],this.navigationDOM.wrapper.appendChild(this.navigationDOM[e[i]]);var n,A,o=new _p(this.navigationDOM[e[i]]);dx(o,"_fit"===g[i]?Fi(n=this._fit).call(n,this):Fi(A=this.bindToRedraw).call(A,this,g[i])),this.navigationHammers.push(o)}var C=new _p(this.canvas.frame);hx(C,(function(){t._stopMovement()})),this.navigationHammers.push(C),this.iconsCreated=!0}},{key:"bindToRedraw",value:function(t){var e;void 0===this.boundFunctions[t]&&(this.boundFunctions[t]=Fi(e=this[t]).call(e,this),this.body.emitter.on("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_startRendering"))}},{key:"unbindFromRedraw",value:function(t){void 0!==this.boundFunctions[t]&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[t])}},{key:"_fit",value:function(){(new Date).valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),g=this.body.view.translation,i=e/t,n=(1-i)*this.canvas.canvasViewCenter.x+g.x*i,A=(1-i)*this.canvas.canvasViewCenter.y+g.y*i;this.body.view.scale=e,this.body.view.translation={x:n,y:A},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),g=this.body.view.translation,i=e/t,n=(1-i)*this.canvas.canvasViewCenter.x+g.x*i,A=(1-i)*this.canvas.canvasViewCenter.y+g.y*i;this.body.view.scale=e,this.body.view.translation={x:n,y:A},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,g,i,n,A,o,C,I,r,s,a,l,c,u,d,h,f,p,v,y,m,b,w,x=this;void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled&&(!0===this.options.keyboard.bindToWindow?this.keycharm=vx({container:window,preventDefault:!0}):this.keycharm=vx({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(Fi(t=this.keycharm).call(t,"up",(function(){x.bindToRedraw("_moveUp")}),"keydown"),Fi(e=this.keycharm).call(e,"down",(function(){x.bindToRedraw("_moveDown")}),"keydown"),Fi(g=this.keycharm).call(g,"left",(function(){x.bindToRedraw("_moveLeft")}),"keydown"),Fi(i=this.keycharm).call(i,"right",(function(){x.bindToRedraw("_moveRight")}),"keydown"),Fi(n=this.keycharm).call(n,"=",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),Fi(A=this.keycharm).call(A,"num+",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),Fi(o=this.keycharm).call(o,"num-",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),Fi(C=this.keycharm).call(C,"-",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),Fi(I=this.keycharm).call(I,"[",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),Fi(r=this.keycharm).call(r,"]",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),Fi(s=this.keycharm).call(s,"pageup",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),Fi(a=this.keycharm).call(a,"pagedown",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),Fi(l=this.keycharm).call(l,"up",(function(){x.unbindFromRedraw("_moveUp")}),"keyup"),Fi(c=this.keycharm).call(c,"down",(function(){x.unbindFromRedraw("_moveDown")}),"keyup"),Fi(u=this.keycharm).call(u,"left",(function(){x.unbindFromRedraw("_moveLeft")}),"keyup"),Fi(d=this.keycharm).call(d,"right",(function(){x.unbindFromRedraw("_moveRight")}),"keyup"),Fi(h=this.keycharm).call(h,"=",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),Fi(f=this.keycharm).call(f,"num+",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),Fi(p=this.keycharm).call(p,"num-",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),Fi(v=this.keycharm).call(v,"-",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),Fi(y=this.keycharm).call(y,"[",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),Fi(m=this.keycharm).call(m,"]",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),Fi(b=this.keycharm).call(b,"pageup",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),Fi(w=this.keycharm).call(w,"pagedown",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();function mx(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}var bx=function(){function t(e,g,i){var n,A,o,C,I,r,s,a,l,c,u,d,h;nI(this,t),this.body=e,this.canvas=g,this.selectionHandler=i,this.navigationHandler=new yx(e,g),this.body.eventListeners.onTap=Fi(n=this.onTap).call(n,this),this.body.eventListeners.onTouch=Fi(A=this.onTouch).call(A,this),this.body.eventListeners.onDoubleTap=Fi(o=this.onDoubleTap).call(o,this),this.body.eventListeners.onHold=Fi(C=this.onHold).call(C,this),this.body.eventListeners.onDragStart=Fi(I=this.onDragStart).call(I,this),this.body.eventListeners.onDrag=Fi(r=this.onDrag).call(r,this),this.body.eventListeners.onDragEnd=Fi(s=this.onDragEnd).call(s,this),this.body.eventListeners.onMouseWheel=Fi(a=this.onMouseWheel).call(a,this),this.body.eventListeners.onPinch=Fi(l=this.onPinch).call(l,this),this.body.eventListeners.onMouseMove=Fi(c=this.onMouseMove).call(c,this),this.body.eventListeners.onRelease=Fi(u=this.onRelease).call(u,this),this.body.eventListeners.onContext=Fi(d=this.onContext).call(d,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=Fi(h=this.getPointer).call(h,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},fi(this.options,this.defaultOptions),this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("destroy",(function(){clearTimeout(t.popupTimer),delete t.body.functions.getPointer}))}},{key:"setOptions",value:function(t){void 0!==t&&(Cp(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,t),bp(this.options,t,"keyboard"),t.tooltip&&(fi(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=dp(t.tooltip.color)))),this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-(e=this.canvas.frame.canvas,e.getBoundingClientRect().left),y:t.y-sp(this.canvas.frame.canvas)};var e}},{key:"onTouch",value:function(t){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),g=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,g),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),g=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,g),this.selectionHandler.commitAndEmit(e,t),this.selectionHandler.generateClickEvent("click",t,e),this.selectionHandler.generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler.generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler.generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t){!0===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t)}},{key:"_determineDifference",value:function(t,e){var g=function(t,e){for(var g=[],i=0;i<t.length;i++){var n=t[i];-1===fd(e).call(e,n)&&g.push(n)}return g};return{nodes:g(t.nodes,e.nodes),edges:g(t.edges,e.edges)}}},{key:"onDragStart",value:function(t){if(!this.drag.dragging){void 0===this.drag.pointer&&this.onTouch(t);var e=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=fi({},this.body.view.translation),this.drag.nodeId=void 0,t.srcEvent.shiftKey){this.body.selectionBox.show=!0;var g=this.getPointer(t.center);this.body.selectionBox.position.start={x:this.canvas._XconvertDOMtoCanvas(g.x),y:this.canvas._YconvertDOMtoCanvas(g.y)},this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(g.x),y:this.canvas._YconvertDOMtoCanvas(g.y)}}else if(void 0!==e&&!0===this.options.dragNodes){this.drag.nodeId=e.id,!1===e.isSelected()&&this.selectionHandler.setSelection({nodes:[e.id]}),this.selectionHandler.generateClickEvent("dragStart",t,this.drag.pointer);var i,n=function(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return mx(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?mx(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}(this.selectionHandler.getSelectedNodes());try{for(n.s();!(i=n.n()).done;){var A=i.value,o={id:A.id,node:A,x:A.x,y:A.y,xFixed:A.options.fixed.x,yFixed:A.options.fixed.y};A.options.fixed.x=!0,A.options.fixed.y=!0,this.drag.selection.push(o)}}catch(t){n.e(t)}finally{n.f()}}else this.selectionHandler.generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}}},{key:"onDrag",value:function(t){var e=this;if(!0!==this.drag.pinched){this.body.emitter.emit("unlockNode");var g=this.getPointer(t.center),i=this.drag.selection;if(i&&i.length&&!0===this.options.dragNodes){this.selectionHandler.generateClickEvent("dragging",t,g);var n=g.x-this.drag.pointer.x,A=g.y-this.drag.pointer.y;Pc(i).call(i,(function(t){var g=t.node;!1===t.xFixed&&(g.x=e.canvas._XconvertDOMtoCanvas(e.canvas._XconvertCanvasToDOM(t.x)+n)),!1===t.yFixed&&(g.y=e.canvas._YconvertDOMtoCanvas(e.canvas._YconvertCanvasToDOM(t.y)+A))})),this.body.emitter.emit("startSimulation")}else{if(t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,g,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(g.x),y:this.canvas._YconvertDOMtoCanvas(g.y)},this.body.emitter.emit("_requestRedraw")}if(!0===this.options.dragView&&!t.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",t,g,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);var o=g.x-this.drag.pointer.x,C=g.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+o,y:this.drag.translation.y+C},this.body.emitter.emit("_requestRedraw")}}}}},{key:"onDragEnd",value:function(t){var e=this;if(this.drag.dragging=!1,this.body.selectionBox.show){var g;this.body.selectionBox.show=!1;var i=this.body.selectionBox.position,n={minX:Math.min(i.start.x,i.end.x),minY:Math.min(i.start.y,i.end.y),maxX:Math.max(i.start.x,i.end.x),maxY:Math.max(i.start.y,i.end.y)},A=ju(g=this.body.nodeIndices).call(g,(function(t){var g=e.body.nodes[t];return g.x>=n.minX&&g.x<=n.maxX&&g.y>=n.minY&&g.y<=n.maxY}));Pc(A).call(A,(function(t){return e.selectionHandler.selectObject(e.body.nodes[t])}));var o=this.getPointer(t.center);this.selectionHandler.commitAndEmit(o,t),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{var C=this.drag.selection;C&&C.length?(Pc(C).call(C,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var g=this.pinch.scale*t.scale;this.zoom(g,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var g=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var i=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(i=this.canvas.DOMtoCanvas(this.drag.pointer));var n=this.body.view.translation,A=t/g,o=(1-A)*e.x+n.x*A,C=(1-A)*e.y+n.y*A;if(this.body.view.scale=t,this.body.view.translation={x:o,y:C},null!=i){var I=this.canvas.canvasToDOM(i);this.drag.pointer.x=I.x,this.drag.pointer.y=I.y}this.body.emitter.emit("_requestRedraw"),g<t?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:e}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:e})}}},{key:"onMouseWheel",value:function(t){if(!0===this.options.zoomView){if(0!==t.deltaY){var e=this.body.view.scale;e*=1+(t.deltaY<0?1:-1)*(.1*this.options.zoomSpeed);var g=this.getPointer({x:t.clientX,y:t.clientY});this.zoom(e,g)}t.preventDefault()}}},{key:"onMouseMove",value:function(t){var e=this,g=this.getPointer({x:t.clientX,y:t.clientY}),i=!1;void 0!==this.popup&&(!1===this.popup.hidden&&this._checkHidePopup(g),!1===this.popup.hidden&&(i=!0,this.popup.setPosition(g.x+3,g.y-5),this.popup.show())),this.options.keyboard.autoFocus&&!1===this.options.keyboard.bindToWindow&&!0===this.options.keyboard.enabled&&this.canvas.frame.focus(),!1===i&&(void 0!==this.popupTimer&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=Zd((function(){return e._checkShowPopup(g)}),this.options.tooltipDelay))),!0===this.options.hover&&this.selectionHandler.hoverObject(t,g)}},{key:"_checkShowPopup",value:function(t){var e=this.canvas._XconvertDOMtoCanvas(t.x),g=this.canvas._YconvertDOMtoCanvas(t.y),i={left:e,top:g,right:e,bottom:g},n=void 0===this.popupObj?void 0:this.popupObj.id,A=!1,o="node";if(void 0===this.popupObj){for(var C,I=this.body.nodeIndices,r=this.body.nodes,s=[],a=0;a<I.length;a++)!0===(C=r[I[a]]).isOverlappingWith(i)&&(A=!0,void 0!==C.getTitle()&&s.push(I[a]));s.length>0&&(this.popupObj=r[s[s.length-1]],A=!0)}if(void 0===this.popupObj&&!1===A){for(var l,c=this.body.edgeIndices,u=this.body.edges,d=[],h=0;h<c.length;h++)!0===(l=u[c[h]]).isOverlappingWith(i)&&!0===l.connected&&void 0!==l.getTitle()&&d.push(c[h]);d.length>0&&(this.popupObj=u[d[d.length-1]],o="edge")}void 0!==this.popupObj?this.popupObj.id!==n&&(void 0===this.popup&&(this.popup=new zp(this.canvas.frame)),this.popup.popupTargetType=o,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),g=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(g=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var i=this.selectionHandler.getNodeAt(t);g=void 0!==i&&i.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(g=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===g&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}();ky("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Wy);var wx=n(it.Set),xx=p,kx=Oy,Ex=Wv.getWeakData,Ox=Iy,Tx=gg,Dx=H,Rx=gt,Sx=Ay,Nx=$t,Px=zn.set,Mx=zn.getterFor,Bx=wr.find,_x=wr.findIndex,zx=xx([].splice),Fx=0,jx=function(t){return t.frozen||(t.frozen=new Lx)},Lx=function(){this.entries=[]},Zx=function(t,e){return Bx(t.entries,(function(t){return t[0]===e}))};Lx.prototype={get:function(t){var e=Zx(this,t);if(e)return e[1]},has:function(t){return!!Zx(this,t)},set:function(t,e){var g=Zx(this,t);g?g[1]=e:this.entries.push([t,e])},delete:function(t){var e=_x(this.entries,(function(e){return e[0]===t}));return~e&&zx(this.entries,e,1),!!~e}};var Gx,Vx={getConstructor:function(t,e,g,i){var n=t((function(t,n){Ox(t,A),Px(t,{type:e,id:Fx++,frozen:void 0}),Dx(n)||Sx(n,t[i],{that:t,AS_ENTRIES:g})})),A=n.prototype,o=Mx(e),C=function(t,e,g){var i=o(t),n=Ex(Tx(e),!0);return!0===n?jx(i).set(e,g):n[i.id]=g,t};return kx(A,{delete:function(t){var e=o(this);if(!Rx(t))return!1;var g=Ex(t);return!0===g?jx(e).delete(t):g&&Nx(g,e.id)&&delete g[e.id]},has:function(t){var e=o(this);if(!Rx(t))return!1;var g=Ex(t);return!0===g?jx(e).has(t):g&&Nx(g,e.id)}}),kx(A,g?{get:function(t){var e=o(this);if(Rx(t)){var g=Ex(t);return!0===g?jx(e).get(t):g?g[e.id]:void 0}},set:function(t,e){return C(this,t,e)}}:{add:function(t){return C(this,t,!0)}}),n}},Yx=Dv,Wx=o,Ux=p,Hx=Oy,Qx=Wv,Kx=ky,Xx=Vx,Jx=gt,qx=zn.enforce,$x=C,tk=yn,ek=Object,gk=Array.isArray,ik=ek.isExtensible,nk=ek.isFrozen,Ak=ek.isSealed,ok=ek.freeze,Ck=ek.seal,Ik={},rk={},sk=!Wx.ActiveXObject&&"ActiveXObject"in Wx,ak=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},lk=Kx("WeakMap",ak,Xx),ck=lk.prototype,uk=Ux(ck.set);if(tk)if(sk){Gx=Xx.getConstructor(ak,"WeakMap",!0),Qx.enable();var dk=Ux(ck.delete),hk=Ux(ck.has),fk=Ux(ck.get);Hx(ck,{delete:function(t){if(Jx(t)&&!ik(t)){var e=qx(this);return e.frozen||(e.frozen=new Gx),dk(this,t)||e.frozen.delete(t)}return dk(this,t)},has:function(t){if(Jx(t)&&!ik(t)){var e=qx(this);return e.frozen||(e.frozen=new Gx),hk(this,t)||e.frozen.has(t)}return hk(this,t)},get:function(t){if(Jx(t)&&!ik(t)){var e=qx(this);return e.frozen||(e.frozen=new Gx),hk(this,t)?fk(this,t):e.frozen.get(t)}return fk(this,t)},set:function(t,e){if(Jx(t)&&!ik(t)){var g=qx(this);g.frozen||(g.frozen=new Gx),hk(this,t)?uk(this,t,e):g.frozen.set(t,e)}else uk(this,t,e);return this}})}else Yx&&$x((function(){var t=ok([]);return uk(new lk,t,1),!nk(t)}))&&Hx(ck,{set:function(t,e){var g;return gk(t)&&(nk(t)?g=Ik:Ak(t)&&(g=rk)),uk(this,t,e),g===Ik&&ok(t),g===rk&&Ck(t),this}});var pk,vk,yk,mk,bk,wk=n(it.WeakMap);function xk(t,e,g,i){if("a"===g&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===g?i:"a"===g?i.call(t):i?i.value:e.get(t)}function kk(t,e,g,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,g):n?n.value=g:e.set(t,g),g}function Ek(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return Ok(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ok(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function Ok(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function Tk(t,e){var g,i=new wx,n=Ek(e);try{for(n.s();!(g=n.n()).done;){var A=g.value;t.has(A)||i.add(A)}}catch(t){n.e(t)}finally{n.f()}return i}"function"==typeof SuppressedError&&SuppressedError;var Dk=function(){function t(){nI(this,t),pk.set(this,new wx),vk.set(this,new wx)}return Cl(t,[{key:"size",get:function(){return xk(this,vk,"f").size}},{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),g=0;g<t;g++)e[g]=arguments[g];for(var i=0,n=e;i<n.length;i++){var A=n[i];xk(this,vk,"f").add(A)}}},{key:"delete",value:function(){for(var t=arguments.length,e=new Array(t),g=0;g<t;g++)e[g]=arguments[g];for(var i=0,n=e;i<n.length;i++){var A=n[i];xk(this,vk,"f").delete(A)}}},{key:"clear",value:function(){xk(this,vk,"f").clear()}},{key:"getSelection",value:function(){return Ql(xk(this,vk,"f"))}},{key:"getChanges",value:function(){return{added:Ql(Tk(xk(this,pk,"f"),xk(this,vk,"f"))),deleted:Ql(Tk(xk(this,vk,"f"),xk(this,pk,"f"))),previous:Ql(new wx(xk(this,pk,"f"))),current:Ql(new wx(xk(this,vk,"f")))}}},{key:"commit",value:function(){var t=this.getChanges();kk(this,pk,xk(this,vk,"f"),"f"),kk(this,vk,new wx(xk(this,pk,"f")),"f");var e,g=Ek(t.added);try{for(g.s();!(e=g.n()).done;)e.value.select()}catch(t){g.e(t)}finally{g.f()}var i,n=Ek(t.deleted);try{for(n.s();!(i=n.n()).done;)i.value.unselect()}catch(t){n.e(t)}finally{n.f()}return t}}]),t}();pk=new wk,vk=new wk;var Rk=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};nI(this,t),yk.set(this,new Dk),mk.set(this,new Dk),bk.set(this,void 0),kk(this,bk,e,"f")}return Cl(t,[{key:"sizeNodes",get:function(){return xk(this,yk,"f").size}},{key:"sizeEdges",get:function(){return xk(this,mk,"f").size}},{key:"getNodes",value:function(){return xk(this,yk,"f").getSelection()}},{key:"getEdges",value:function(){return xk(this,mk,"f").getSelection()}},{key:"addNodes",value:function(){var t;(t=xk(this,yk,"f")).add.apply(t,arguments)}},{key:"addEdges",value:function(){var t;(t=xk(this,mk,"f")).add.apply(t,arguments)}},{key:"deleteNodes",value:function(t){xk(this,yk,"f").delete(t)}},{key:"deleteEdges",value:function(t){xk(this,mk,"f").delete(t)}},{key:"clear",value:function(){xk(this,yk,"f").clear(),xk(this,mk,"f").clear()}},{key:"commit",value:function(){for(var t,e,g={nodes:xk(this,yk,"f").commit(),edges:xk(this,mk,"f").commit()},i=arguments.length,n=new Array(i),A=0;A<i;A++)n[A]=arguments[A];return(t=xk(this,bk,"f")).call.apply(t,tc(e=[this,g]).call(e,n)),g}}]),t}();function Sk(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return Nk(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Nk(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}function Nk(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}yk=new wk,mk=new wk,bk=new wk;var Pk=function(){function t(e,g){var i=this;nI(this,t),this.body=e,this.canvas=g,this._selectionAccumulator=new Rk,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},fi(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",(function(){i.updateSelection()}))}return Cl(t,[{key:"setOptions",value:function(t){void 0!==t&&op(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,t)}},{key:"selectOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var g=this.getNodeAt(t)||this.getEdgeAt(t);this.unselectAll(),void 0!==g&&(e=this.selectObject(g)),this.body.emitter.emit("_requestRedraw")}return e}},{key:"selectAdditionalOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var g=this.getNodeAt(t)||this.getEdgeAt(t);void 0!==g&&(e=!0,!0===g.isSelected()?this.deselectObject(g):this.selectObject(g),this.body.emitter.emit("_requestRedraw"))}return e}},{key:"_initBaseEvent",value:function(t,e){var g={};return g.pointer={DOM:{x:e.x,y:e.y},canvas:this.canvas.DOMtoCanvas(e)},g.event=t,g}},{key:"generateClickEvent",value:function(t,e,g,i){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],A=this._initBaseEvent(e,g);if(!0===n)A.nodes=[],A.edges=[];else{var o=this.getSelection();A.nodes=o.nodes,A.edges=o.edges}void 0!==i&&(A.previousSelection=i),"click"==t&&(A.items=this.getClickedItems(g)),void 0!==e.controlEdge&&(A.controlEdge=e.controlEdge),this.body.emitter.emit(t,A)}},{key:"selectObject",value:function(t){var e,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==t&&(t instanceof nw?(!0===g&&(e=this._selectionAccumulator).addEdges.apply(e,Ql(t.edges)),this._selectionAccumulator.addNodes(t)):this._selectionAccumulator.addEdges(t),!0)}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],g=this.body.nodes,i=0;i<this.body.nodeIndices.length;i++){var n=this.body.nodeIndices[i];g[n].isOverlappingWith(t)&&e.push(n)}return e}},{key:"_pointerToPositionObject",value:function(t){var e=this.canvas.DOMtoCanvas(t);return{left:e.x-1,top:e.y+1,right:e.x+1,bottom:e.y-1}}},{key:"getNodeAt",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],g=this._pointerToPositionObject(t),i=this._getAllNodesOverlappingWith(g);return i.length>0?!0===e?this.body.nodes[i[i.length-1]]:i[i.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var g=this.body.edges,i=0;i<this.body.edgeIndices.length;i++){var n=this.body.edgeIndices[i];g[n].isOverlappingWith(t)&&e.push(n)}}},{key:"_getAllEdgesOverlappingWith",value:function(t){var e=[];return this._getEdgesOverlappingWith(t,e),e}},{key:"getEdgeAt",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],g=this.canvas.DOMtoCanvas(t),i=10,n=null,A=this.body.edges,o=0;o<this.body.edgeIndices.length;o++){var C=this.body.edgeIndices[o],I=A[C];if(I.connected){var r=I.from.x,s=I.from.y,a=I.to.x,l=I.to.y,c=I.edgeType.getDistanceToEdge(r,s,a,l,g.x,g.y);c<i&&(n=C,i=c)}}return null!==n?!0===e?this.body.edges[n]:n:void 0}},{key:"_addToHover",value:function(t){t instanceof nw?this.hoverObj.nodes[t.id]=t:this.hoverObj.edges[t.id]=t}},{key:"_removeFromSelection",value:function(t){var e;t instanceof nw?(this._selectionAccumulator.deleteNodes(t),(e=this._selectionAccumulator).deleteEdges.apply(e,Ql(t.edges))):this._selectionAccumulator.deleteEdges(t)}},{key:"unselectAll",value:function(){this._selectionAccumulator.clear()}},{key:"getSelectedNodeCount",value:function(){return this._selectionAccumulator.sizeNodes}},{key:"getSelectedEdgeCount",value:function(){return this._selectionAccumulator.sizeEdges}},{key:"_hoverConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var g=t.edges[e];g.hover=!0,this._addToHover(g)}}},{key:"emitBlurEvent",value:function(t,e,g){var i=this._initBaseEvent(t,e);!0===g.hover&&(g.hover=!1,g instanceof nw?(i.node=g.id,this.body.emitter.emit("blurNode",i)):(i.edge=g.id,this.body.emitter.emit("blurEdge",i)))}},{key:"emitHoverEvent",value:function(t,e,g){var i=this._initBaseEvent(t,e),n=!1;return!1===g.hover&&(g.hover=!0,this._addToHover(g),n=!0,g instanceof nw?(i.node=g.id,this.body.emitter.emit("hoverNode",i)):(i.edge=g.id,this.body.emitter.emit("hoverEdge",i))),n}},{key:"hoverObject",value:function(t,e){var g=this.getNodeAt(e);void 0===g&&(g=this.getEdgeAt(e));var i=!1;for(var n in this.hoverObj.nodes)Object.prototype.hasOwnProperty.call(this.hoverObj.nodes,n)&&(void 0===g||g instanceof nw&&g.id!=n||g instanceof Hw)&&(this.emitBlurEvent(t,e,this.hoverObj.nodes[n]),delete this.hoverObj.nodes[n],i=!0);for(var A in this.hoverObj.edges)Object.prototype.hasOwnProperty.call(this.hoverObj.edges,A)&&(!0===i?(this.hoverObj.edges[A].hover=!1,delete this.hoverObj.edges[A]):(void 0===g||g instanceof Hw&&g.id!=A||g instanceof nw&&!g.hover)&&(this.emitBlurEvent(t,e,this.hoverObj.edges[A]),delete this.hoverObj.edges[A],i=!0));if(void 0!==g){var o=fc(this.hoverObj.edges).length,C=fc(this.hoverObj.nodes).length;(i||g instanceof Hw&&0===o&&0===C||g instanceof nw&&0===o&&0===C)&&(i=this.emitHoverEvent(t,e,g)),g instanceof nw&&!0===this.options.hoverConnectedEdges&&this._hoverConnectedEdges(g)}!0===i&&this.body.emitter.emit("_requestRedraw")}},{key:"commitWithoutEmitting",value:function(){this._selectionAccumulator.commit()}},{key:"commitAndEmit",value:function(t,e){var g=!1,i=this._selectionAccumulator.commit(),n={nodes:i.nodes.previous,edges:i.edges.previous};i.edges.deleted.length>0&&(this.generateClickEvent("deselectEdge",e,t,n),g=!0),i.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",e,t,n),g=!0),i.nodes.added.length>0&&(this.generateClickEvent("selectNode",e,t),g=!0),i.edges.added.length>0&&(this.generateClickEvent("selectEdge",e,t),g=!0),!0===g&&this.generateClickEvent("select",e,t)}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}},{key:"getSelectedNodes",value:function(){return this._selectionAccumulator.getNodes()}},{key:"getSelectedEdges",value:function(){return this._selectionAccumulator.getEdges()}},{key:"getSelectedNodeIds",value:function(){var t;return uc(t=this._selectionAccumulator.getNodes()).call(t,(function(t){return t.id}))}},{key:"getSelectedEdgeIds",value:function(){var t;return uc(t=this._selectionAccumulator.getEdges()).call(t,(function(t){return t.id}))}},{key:"setSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((e.unselectAll||void 0===e.unselectAll)&&this.unselectAll(),t.nodes){var g,i=Sk(t.nodes);try{for(i.s();!(g=i.n()).done;){var n=g.value,A=this.body.nodes[n];if(!A)throw new RangeError('Node with id "'+n+'" not found');this.selectObject(A,e.highlightEdges)}}catch(t){i.e(t)}finally{i.f()}}if(t.edges){var o,C=Sk(t.edges);try{for(C.s();!(o=C.n()).done;){var I=o.value,r=this.body.edges[I];if(!r)throw new RangeError('Edge with id "'+I+'" not found');this.selectObject(r)}}catch(t){C.e(t)}finally{C.f()}}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,t.id)||this._selectionAccumulator.deleteNodes(t);for(var e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),g=[],i=this.body.nodeIndices,n=this.body.nodes,A=i.length-1;A>=0;A--){var o=n[i[A]].getItemsOnPoint(e);g.push.apply(g,o)}for(var C=this.body.edgeIndices,I=this.body.edges,r=C.length-1;r>=0;r--){var s=I[C[r]].getItemsOnPoint(e);g.push.apply(g,s)}return g}}]),t}(),Mk=XI,Bk=Math.floor,_k=function(t,e){var g=t.length,i=Bk(g/2);return g<8?zk(t,e):Fk(t,_k(Mk(t,0,i),e),_k(Mk(t,i),e),e)},zk=function(t,e){for(var g,i,n=t.length,A=1;A<n;){for(i=A,g=t[A];i&&e(t[i-1],g)>0;)t[i]=t[--i];i!==A++&&(t[i]=g)}return t},Fk=function(t,e,g,i){for(var n=e.length,A=g.length,o=0,C=0;o<n||C<A;)t[o+C]=o<n&&C<A?i(e[o],g[C])<=0?e[o++]:g[C++]:o<n?e[o++]:g[C++];return t},jk=_k,Lk=st.match(/firefox\/(\d+)/i),Zk=!!Lk&&+Lk[1],Gk=/MSIE|Trident/.test(st),Vk=st.match(/AppleWebKit\/(\d+)\./),Yk=!!Vk&&+Vk[1],Wk=Tg,Uk=p,Hk=Pt,Qk=Xt,Kk=jg,Xk=Wc,Jk=In,qk=C,$k=jk,tE=wc,eE=Zk,gE=Gk,iE=ft,nE=Yk,AE=[],oE=Uk(AE.sort),CE=Uk(AE.push),IE=qk((function(){AE.sort(void 0)})),rE=qk((function(){AE.sort(null)})),sE=tE("sort"),aE=!qk((function(){if(iE)return iE<70;if(!(eE&&eE>3)){if(gE)return!0;if(nE)return nE<603;var t,e,g,i,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:g=3;break;case 68:case 71:g=4;break;default:g=2}for(i=0;i<47;i++)AE.push({k:e+i,v:g})}for(AE.sort((function(t,e){return e.v-t.v})),i=0;i<AE.length;i++)e=AE[i].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}));Wk({target:"Array",proto:!0,forced:IE||!rE||!sE||!aE},{sort:function(t){void 0!==t&&Hk(t);var e=Qk(this);if(aE)return void 0===t?oE(e):oE(e,t);var g,i,n=[],A=Kk(e);for(i=0;i<A;i++)i in e&&CE(n,e[i]);for($k(n,function(t){return function(e,g){return void 0===g?-1:void 0===e?1:void 0!==t?+t(e,g)||0:Jk(e)>Jk(g)?1:-1}}(t)),g=Kk(n),i=0;i<g;)e[i]=n[i++];for(;i<A;)Xk(e,i++);return e}});var lE=Ni("Array").sort,cE=rt,uE=lE,dE=Array.prototype,hE=n((function(t){var e=t.sort;return t===dE||cE(dE,t)&&e===dE.sort?uE:e})),fE=Pt,pE=Xt,vE=U,yE=jg,mE=TypeError,bE=function(t){return function(e,g,i,n){fE(g);var A=pE(e),o=vE(A),C=yE(A),I=t?C-1:0,r=t?-1:1;if(i<2)for(;;){if(I in o){n=o[I],I+=r;break}if(I+=r,t?I<0:C<=I)throw new mE("Reduce of empty array with no initial value")}for(;t?I>=0:C>I;I+=r)I in o&&(n=g(n,o[I],I,A));return n}},wE={left:bE(!1),right:bE(!0)},xE="process"===b(o.process),kE=wE.left;Tg({target:"Array",proto:!0,forced:!xE&&ft>79&&ft<83||!wc("reduce")},{reduce:function(t){var e=arguments.length;return kE(this,t,e,e>1?arguments[1]:void 0)}});var EE=Ni("Array").reduce,OE=rt,TE=EE,DE=Array.prototype,RE=n((function(t){var e=t.reduce;return t===DE||OE(DE,t)&&e===DE.reduce?TE:e}));function SE(t){var e=function(){if("undefined"==typeof Reflect||!Eb)return!1;if(Eb.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Eb(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var g,i=Mb(t);if(e){var n=Mb(this).constructor;g=Eb(i,arguments,n)}else g=i.apply(this,arguments);return Nb(this,g)}}var NE=function(){function t(){nI(this,t)}return Cl(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,g),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),PE=function(t){Sb(g,t);var e=SE(g);function g(t){var i;return nI(this,g),(i=e.call(this)).layout=t,i}return Cl(g,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==g&&this.layout.hierarchical.addToOrdering(t,g),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){hE(t).call(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),g}(NE),ME=function(t){Sb(g,t);var e=SE(g);function g(t){var i;return nI(this,g),(i=e.call(this)).layout=t,i}return Cl(g,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==g&&this.layout.hierarchical.addToOrdering(t,g),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){hE(t).call(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),g}(NE),BE=wr.every;Tg({target:"Array",proto:!0,forced:!wc("every")},{every:function(t){return BE(this,t,arguments.length>1?arguments[1]:void 0)}});var _E=Ni("Array").every,zE=rt,FE=_E,jE=Array.prototype,LE=n((function(t){var e=t.every;return t===jE||zE(jE,t)&&e===jE.every?FE:e}));function ZE(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}function GE(t,e){var g=new wx;return Pc(t).call(t,(function(t){var e;Pc(e=t.edges).call(e,(function(t){t.connected&&g.add(t)}))})),Pc(g).call(g,(function(t){var g=t.from.id,i=t.to.id;null==e[g]&&(e[g]=0),(null==e[i]||e[g]>=e[i])&&(e[i]=e[g]+1)})),e}function VE(t,e,g,i){var n,A,o=yd(null),C=RE(n=Ql(gb(i).call(i))).call(n,(function(t,e){return t+1+e.edges.length}),0),I=g+"Id",r="to"===g?1:-1,s=function(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return ZE(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ZE(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}(i);try{var a,l=function(){var n=Hl(A.value,2),s=n[0],a=n[1];if(!i.has(s)||!t(a))return 0;o[s]=0;for(var l,c,u=[a],d=0,h=function(){var t,n;if(!i.has(s))return 0;var A=o[l.id]+r;if(Pc(t=ju(n=l.edges).call(n,(function(t){return t.connected&&t.to!==t.from&&t[g]!==l&&i.has(t.toId)&&i.has(t.fromId)}))).call(t,(function(t){var i=t[I],n=o[i];(null==n||e(A,n))&&(o[i]=A,u.push(t[g]))})),d>C)return{v:{v:GE(i,o)}};++d};l=u.pop();)if(0!==(c=h())&&c)return c.v};for(s.s();!(A=s.n()).done;)if(0!==(a=l())&&a)return a.v}catch(t){s.e(t)}finally{s.f()}return o}var YE=function(){function t(){nI(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return Cl(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,g={};return function t(i){if(void 0!==g[i])return g[i];var n=e.levels[i];if(e.childrenReference[i]){var A=e.childrenReference[i];if(A.length>0)for(var o=0;o<A.length;o++)n=Math.max(n,t(A[o]))}return g[i]=n,n}(t)}},{key:"levelDownstream",value:function(t,e){void 0===this.levels[e.id]&&(void 0===this.levels[t.id]&&(this.levels[t.id]=0),this.levels[e.id]=this.levels[t.id]+1)}},{key:"setMinLevelToZero",value:function(t){var e=1e9;for(var g in t)Object.prototype.hasOwnProperty.call(t,g)&&void 0!==this.levels[g]&&(e=Math.min(this.levels[g],e));for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&void 0!==this.levels[i]&&(this.levels[i]-=e)}},{key:"getTreeSize",value:function(t,e){var g=1e9,i=-1e9,n=1e9,A=-1e9;for(var o in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,o)&&this.trees[o]===e){var C=t[o];g=Math.min(C.x,g),i=Math.max(C.x,i),n=Math.min(C.y,n),A=Math.max(C.y,A)}return{min_x:g,max_x:i,min_y:n,max_y:A}}},{key:"hasSameParent",value:function(t,e){var g=this.parentReference[t.id],i=this.parentReference[e.id];if(void 0===g||void 0===i)return!1;for(var n=0;n<g.length;n++)for(var A=0;A<i.length;A++)if(g[n]==i[A])return!0;return!1}},{key:"inSameSubNetwork",value:function(t,e){return this.trees[t.id]===this.trees[e.id]}},{key:"getLevels",value:function(){return fc(this.distributionOrdering)}},{key:"addToOrdering",value:function(t,e){void 0===this.distributionOrdering[e]&&(this.distributionOrdering[e]=[]);var g=!1,i=this.distributionOrdering[e];for(var n in i)if(i[n]===t){g=!0;break}g||(this.distributionOrdering[e].push(t),this.distributionIndex[t.id]=this.distributionOrdering[e].length-1)}}]),t}(),WE=function(){function t(e){nI(this,t),this.body=e,this._resetRNG(Math.random()+":"+mc()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},fi(this.options,this.defaultOptions),this.bindEventListeners()}return Cl(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_dataLoaded",(function(){t.layoutNetwork()})),this.body.emitter.on("_resetHierarchicalLayout",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",(function(){if(!0===t.options.hierarchical.enabled){var e=t.direction.curveType();t.body.emitter.emit("_forceDisableDynamicCurves",e,!1)}}))}},{key:"setOptions",value:function(t,e){if(void 0!==t){var g=this.options.hierarchical,i=g.enabled;if(op(["randomSeed","improvedLayout","clusterThreshold"],this.options,t),bp(this.options,t,"hierarchical"),void 0!==t.randomSeed&&this._resetRNG(t.randomSeed),!0===g.enabled)return!0===i&&this.body.emitter.emit("refresh",!0),"RL"===g.direction||"DU"===g.direction?g.levelSeparation>0&&(g.levelSeparation*=-1):g.levelSeparation<0&&(g.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===i)return this.body.emitter.emit("refresh"),Ip(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=Qf(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===il(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var g=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:g};else{var i=t.edges.smooth;void 0!==i.type&&"dynamic"!==i.type&&(g=i.type),this.optionsBackup.edges={smooth:{enabled:void 0===i.enabled||i.enabled,type:void 0===i.type?"dynamic":i.type,roundness:void 0===i.roundness?.5:i.roundness,forceDirection:void 0!==i.forceDirection&&i.forceDirection}},t.edges.smooth={enabled:void 0===i.enabled||i.enabled,type:g,roundness:void 0===i.roundness?.5:i.roundness,forceDirection:void 0!==i.forceDirection&&i.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",g)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,g=0;g<t.length;g++){var i=t[g],n=2*Math.PI*this._rng();void 0===i.x&&(i.x=e*Math.cos(n)),void 0===i.y&&(i.y=e*Math.sin(n))}}}},{key:"layoutNetwork",value:function(){if(!0!==this.options.hierarchical.enabled&&!0===this.options.improvedLayout){for(var t=this.body.nodeIndices,e=0,g=0;g<t.length;g++)!0===this.body.nodes[t[g]].predefinedPosition&&(e+=1);if(e<.5*t.length){var i=0,n=this.options.clusterThreshold,A={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(t.length>n){for(var o=t.length;t.length>n&&i<=10;){i+=1;var C=t.length;if(i%3==0?this.body.modules.clustering.clusterBridges(A):this.body.modules.clustering.clusterOutliers(A),C==t.length&&i%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*o)})}i>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var I=0;I<t.length;I++){var r=this.body.nodes[t[I]];!1===r.predefinedPosition&&(r.x+=70*(.5-this._rng()),r.y+=70*(.5-this._rng()))}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var t=sx.getRangeCore(this.body.nodes,this.body.nodeIndices),e=sx.findCenter(t),g=0;g<this.body.nodeIndices.length;g++){var i=this.body.nodes[this.body.nodeIndices[g]];i.x-=e.x,i.y-=e.y}}},{key:"_declusterAll",value:function(){for(var t=!0;!0===t;){t=!1;for(var e=0;e<this.body.nodeIndices.length;e++)!0===this.body.nodes[this.body.nodeIndices[e]].isCluster&&(t=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[e],{},!1));!0===t&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(!0===this.options.hierarchical.enabled&&this.body.nodeIndices.length>0){var t,e,g=!1,i=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new YE,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,e)&&(void 0!==(t=this.body.nodes[e]).options.level?(g=!0,this.hierarchical.levels[e]=t.options.level):i=!0);if(!0===i&&!0===g)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===i){var n=this.options.hierarchical.sortMethod;"hubsize"===n?this._determineLevelsByHubsize():"directed"===n?this._determineLevelsDirected():"custom"===n&&this._determineLevelsCustomCallback()}for(var A in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,A)&&this.hierarchical.ensureLevel(A);var o=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(o),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,g={},i=function(e,g){var i=t.hierarchical.trees;for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&i[n]===e&&t.direction.shift(n,g)},n=function e(g,i){if(!i[g.id]&&(i[g.id]=!0,t.hierarchical.childrenReference[g.id])){var n=t.hierarchical.childrenReference[g.id];if(n.length>0)for(var A=0;A<n.length;A++)e(t.body.nodes[n[A]],i)}},A=function(e){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e9,i=1e9,n=1e9,A=1e9,o=-1e9;for(var C in e)if(Object.prototype.hasOwnProperty.call(e,C)){var I=t.body.nodes[C],r=t.hierarchical.levels[I.id],s=t.direction.getPosition(I),a=Hl(t._getSpaceAroundNode(I,e),2),l=a[0],c=a[1];i=Math.min(l,i),n=Math.min(c,n),r<=g&&(A=Math.min(s,A),o=Math.max(s,o))}return[A,o,i,n]},o=function(e,g,i){for(var n=t.hierarchical,A=0;A<g.length;A++){var o=g[A],C=n.distributionOrdering[o];if(C.length>1)for(var I=0;I<C.length-1;I++){var r=C[I],s=C[I+1];n.hasSameParent(r,s)&&n.inSameSubNetwork(r,s)&&e(r,s,i)}}},C=function(g,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],C=t.direction.getPosition(g),I=t.direction.getPosition(i),r=Math.abs(I-C),s=t.options.hierarchical.nodeSpacing;if(r>s){var a={},l={};n(g,a),n(i,l);var c=function(e,g){var i=t.hierarchical.getMaxLevel(e.id),n=t.hierarchical.getMaxLevel(g.id);return Math.min(i,n)}(g,i),u=A(a,c),d=A(l,c),h=u[1],f=d[0],p=d[2];if(Math.abs(h-f)>s){var v=h-f+s;v<-p+s&&(v=-p+s),v<0&&(t._shiftBlock(i.id,v),e=!0,!0===o&&t._centerParent(i))}}},I=function(i,o){for(var C=o.id,I=o.edges,r=t.hierarchical.levels[o.id],s=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,a={},l=[],c=0;c<I.length;c++){var u=I[c];if(u.toId!=u.fromId){var d=u.toId==C?u.from:u.to;a[I[c].id]=d,t.hierarchical.levels[d.id]<r&&l.push(u)}}var h=function(e,g){for(var i=0,n=0;n<g.length;n++)if(void 0!==a[g[n].id]){var A=t.direction.getPosition(a[g[n].id])-e;i+=A/Math.sqrt(A*A+s)}return i},f=function(e,g){for(var i=0,n=0;n<g.length;n++)if(void 0!==a[g[n].id]){var A=t.direction.getPosition(a[g[n].id])-e;i-=s*Math.pow(A*A+s,-1.5)}return i},p=function(e,g){for(var i=t.direction.getPosition(o),n={},A=0;A<e;A++){var C=h(i,g),I=f(i,g);if(void 0!==n[i-=Math.max(-40,Math.min(40,Math.round(C/I)))])break;n[i]=A}return i},v=p(i,l);!function(i){var C=t.direction.getPosition(o);if(void 0===g[o.id]){var I={};n(o,I),g[o.id]=I}var r=A(g[o.id]),s=r[2],a=r[3],l=i-C,c=0;l>0?c=Math.min(l,a-t.options.hierarchical.nodeSpacing):l<0&&(c=-Math.min(-l,s-t.options.hierarchical.nodeSpacing)),0!=c&&(t._shiftBlock(o.id,c),e=!0)}(v),function(g){var i=t.direction.getPosition(o),n=Hl(t._getSpaceAroundNode(o),2),A=n[0],C=n[1],I=g-i,r=i;I>0?r=Math.min(i+(C-t.options.hierarchical.nodeSpacing),g):I<0&&(r=Math.max(i-(A-t.options.hierarchical.nodeSpacing),g)),r!==i&&(t.direction.setPosition(o,r),e=!0)}(v=p(i,I))};!0===this.options.hierarchical.blockShifting&&(function(g){var i=t.hierarchical.getLevels();i=Gc(i).call(i);for(var n=0;n<5&&(e=!1,o(C,i,!0),!0===e);n++);}(),function(){for(var e in t.body.nodes)Object.prototype.hasOwnProperty.call(t.body.nodes,e)&&t._centerParent(t.body.nodes[e])}()),!0===this.options.hierarchical.edgeMinimization&&function(g){var i=t.hierarchical.getLevels();i=Gc(i).call(i);for(var n=0;n<20;n++){e=!1;for(var A=0;A<i.length;A++)for(var o=i[A],C=t.hierarchical.distributionOrdering[o],r=0;r<C.length;r++)I(1e3,C[r]);if(!0!==e)break}}(),!0===this.options.hierarchical.parentCentralization&&function(){var e=t.hierarchical.getLevels();e=Gc(e).call(e);for(var g=0;g<e.length;g++)for(var i=e[g],n=t.hierarchical.distributionOrdering[i],A=0;A<n.length;A++)t._centerParent(n[A])}(),function(){for(var e=function(){for(var e=[],g=0;g<t.hierarchical.numTrees();g++)e.push(t.direction.getTreeSize(g));return e}(),g=0,n=0;n<e.length-1;n++)g+=e[n].max-e[n+1].min+t.options.hierarchical.treeSpacing,i(n+1,g)}()}},{key:"_getSpaceAroundNode",value:function(t,e){var g=!0;void 0===e&&(g=!1);var i=this.hierarchical.levels[t.id];if(void 0!==i){var n=this.hierarchical.distributionIndex[t.id],A=this.direction.getPosition(t),o=this.hierarchical.distributionOrdering[i],C=1e9,I=1e9;if(0!==n){var r=o[n-1];(!0===g&&void 0===e[r.id]||!1===g)&&(C=A-this.direction.getPosition(r))}if(n!=o.length-1){var s=o[n+1];if(!0===g&&void 0===e[s.id]||!1===g){var a=this.direction.getPosition(s);I=Math.min(I,a-A)}}return[C,I]}return[0,0]}},{key:"_centerParent",value:function(t){if(this.hierarchical.parentReference[t.id])for(var e=this.hierarchical.parentReference[t.id],g=0;g<e.length;g++){var i=e[g],n=this.body.nodes[i],A=this.hierarchical.childrenReference[i];if(void 0!==A){var o=this._getCenterPosition(A),C=this.direction.getPosition(n),I=Hl(this._getSpaceAroundNode(n),2),r=I[0],s=I[1],a=C-o;(a<0&&Math.abs(a)<s-this.options.hierarchical.nodeSpacing||a>0&&Math.abs(a)<r-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(n,o)}}}},{key:"_placeNodesByHierarchy",value:function(t){for(var e in this.positionedNodes={},t)if(Object.prototype.hasOwnProperty.call(t,e)){var g,i=fc(t[e]);i=this._indexArrayToNodes(i),hE(g=this.direction).call(g,i);for(var n=0,A=0;A<i.length;A++){var o=i[A];if(void 0===this.positionedNodes[o.id]){var C=this.options.hierarchical.nodeSpacing,I=C*n;n>0&&(I=this.direction.getPosition(i[A-1])+C),this.direction.setPosition(o,I,e),this._validatePositionAndContinue(o,e,I),n++}}}}},{key:"_placeBranchNodes",value:function(t,e){var g,i=this.hierarchical.childrenReference[t];if(void 0!==i){for(var n=[],A=0;A<i.length;A++)n.push(this.body.nodes[i[A]]);hE(g=this.direction).call(g,n);for(var o=0;o<n.length;o++){var C=n[o],I=this.hierarchical.levels[C.id];if(!(I>e&&void 0===this.positionedNodes[C.id]))return;var r,s=this.options.hierarchical.nodeSpacing;r=0===o?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(n[o-1])+s,this.direction.setPosition(C,r,I),this._validatePositionAndContinue(C,I,r)}var a=this._getCenterPosition(n);this.direction.setPosition(this.body.nodes[t],a,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,g){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var i=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(g-i<this.options.hierarchical.nodeSpacing){var n=i+this.options.hierarchical.nodeSpacing-g,A=this._findCommonParent(this.lastNodeOnLevel[e],t.id);this._shiftBlock(A.withChild,n)}}this.lastNodeOnLevel[e]=t.id,this.positionedNodes[t.id]=!0,this._placeBranchNodes(t.id,e)}}},{key:"_indexArrayToNodes",value:function(t){for(var e=[],g=0;g<t.length;g++)e.push(this.body.nodes[t[g]]);return e}},{key:"_getDistribution",value:function(){var t,e,g={};for(t in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,t)){e=this.body.nodes[t];var i=void 0===this.hierarchical.levels[t]?0:this.hierarchical.levels[t];this.direction.fix(e,i),void 0===g[i]&&(g[i]={}),g[i][t]=e}return g}},{key:"_getActiveEdges",value:function(t){var e=this,g=[];return ap(t.edges,(function(t){var i;-1!==fd(i=e.body.edgeIndices).call(i,t.id)&&g.push(t)})),g}},{key:"_getHubSizes",value:function(){var t=this,e={};ap(this.body.nodeIndices,(function(g){var i=t.body.nodes[g],n=t._getActiveEdges(i).length;e[n]=!0}));var g=[];return ap(e,(function(t){g.push(Number(t))})),hE(g).call(g,(function(t,e){return e-t})),g}},{key:"_determineLevelsByHubsize",value:function(){for(var t=this,e=function(e,g){t.hierarchical.levelDownstream(e,g)},g=this._getHubSizes(),i=function(){var i=g[n];if(0===i)return 1;ap(t.body.nodeIndices,(function(g){var n=t.body.nodes[g];i===t._getActiveEdges(n).length&&t._crawlNetwork(e,g)}))},n=0;n<g.length&&!i();++n);}},{key:"_determineLevelsCustomCallback",value:function(){var t=this;this._crawlNetwork((function(e,g,i){var n=t.hierarchical.levels[e.id];void 0===n&&(n=t.hierarchical.levels[e.id]=1e5);var A=(sx.cloneOptions(e,"node"),sx.cloneOptions(g,"node"),void sx.cloneOptions(i,"edge"));t.hierarchical.levels[g.id]=n+A})),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var t,e=this,g=RE(t=this.body.nodeIndices).call(t,(function(t,g){return t.set(g,e.body.nodes[g]),t}),new Uy);"roots"===this.options.hierarchical.shakeTowards?this.hierarchical.levels=function(t){return VE((function(e){var g,i;return LE(g=ju(i=e.edges).call(i,(function(e){return t.has(e.toId)}))).call(g,(function(t){return t.from===e}))}),(function(t,e){return e<t}),"to",t)}(g):this.hierarchical.levels=function(t){return VE((function(e){var g,i;return LE(g=ju(i=e.edges).call(i,(function(e){return t.has(e.toId)}))).call(g,(function(t){return t.to===e}))}),(function(t,e){return e>t}),"from",t)}(g),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,g){t.hierarchical.levels[g.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,g.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},g=arguments.length>1?arguments[1]:void 0,i={},n=function g(n,A){if(void 0===i[n.id]){var o;t.hierarchical.setTreeIndex(n,A),i[n.id]=!0;for(var C=t._getActiveEdges(n),I=0;I<C.length;I++){var r=C[I];!0===r.connected&&(o=r.toId==n.id?r.from:r.to,n.id!=o.id&&(e(n,o,r),g(o,A)))}}};if(void 0===g)for(var A=0,o=0;o<this.body.nodeIndices.length;o++){var C=this.body.nodeIndices[o];void 0===i[C]&&(n(this.body.nodes[C],A),A+=1)}else{var I=this.body.nodes[g];if(void 0===I)return void console.error("Node not found:",g);n(I)}}},{key:"_shiftBlock",value:function(t,e){var g=this,i={};!function t(n){if(!i[n]){i[n]=!0,g.direction.shift(n,e);var A=g.hierarchical.childrenReference[n];if(void 0!==A)for(var o=0;o<A.length;o++)t(A[o])}}(t)}},{key:"_findCommonParent",value:function(t,e){var g=this,i={};return function t(e,i){var n=g.hierarchical.parentReference[i];if(void 0!==n)for(var A=0;A<n.length;A++){var o=n[A];e[o]=!0,t(e,o)}}(i,t),function t(e,i){var n=g.hierarchical.parentReference[i];if(void 0!==n)for(var A=0;A<n.length;A++){var o=n[A];if(void 0!==e[o])return{foundParent:o,withChild:i};var C=t(e,o);if(null!==C.foundParent)return C}return{foundParent:null,withChild:i}}(i,e)}},{key:"setDirectionStrategy",value:function(){var t="UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction;this.direction=t?new PE(this):new ME(this)}},{key:"_getCenterPosition",value:function(t){for(var e=1e9,g=-1e9,i=0;i<t.length;i++){var n=void 0;if(void 0!==t[i].id)n=t[i];else{var A=t[i];n=this.body.nodes[A]}var o=this.direction.getPosition(n);e=Math.min(e,o),g=Math.max(g,o)}return.5*(e+g)}}]),t}();function UE(t,e){(null==e||e>t.length)&&(e=t.length);for(var g=0,i=new Array(e);g<e;g++)i[g]=t[g];return i}var HE=function(){function t(e,g,i,n){var A,o,C=this;nI(this,t),this.body=e,this.canvas=g,this.selectionHandler=i,this.interactionHandler=n,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},fi(this.options,this.defaultOptions),this.body.emitter.on("destroy",(function(){C._clean()})),this.body.emitter.on("_dataChanged",Fi(A=this._restore).call(A,this)),this.body.emitter.on("_resetData",Fi(o=this._restore).call(o,this))}return Cl(t,[{key:"_restore",value:function(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(t,e,g){void 0!==e&&(void 0!==e.locale?this.options.locale=e.locale:this.options.locale=g.locale,void 0!==e.locales?this.options.locales=e.locales:this.options.locales=g.locales),void 0!==t&&("boolean"==typeof t?this.options.enabled=t:(this.options.enabled=!0,Ip(this.options,t)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){var t,e;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var g=this.selectionHandler.getSelectedNodeCount(),i=this.selectionHandler.getSelectedEdgeCount(),n=g+i,A=this.options.locales[this.options.locale],o=!1;!1!==this.options.addNode&&(this._createAddNodeButton(A),o=!0),!1!==this.options.addEdge&&(!0===o?this._createSeperator(1):o=!0,this._createAddEdgeButton(A)),1===g&&"function"==typeof this.options.editNode?(!0===o?this._createSeperator(2):o=!0,this._createEditNodeButton(A)):1===i&&0===g&&!1!==this.options.editEdge&&(!0===o?this._createSeperator(3):o=!0,this._createEditEdgeButton(A)),0!==n&&(g>0&&!1!==this.options.deleteNode||0===g&&!1!==this.options.deleteEdge)&&(!0===o&&this._createSeperator(4),this._createDeleteButton(A)),this._bindElementEvents(this.closeDiv,Fi(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",Fi(e=this.showManipulatorToolbar).call(e,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var e,g=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(g),this._createSeperator(),this._createDescription(g.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,Fi(e=this.toggleEditMode).call(e,this))}this._temporaryBindEvent("click",Fi(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler.getSelectedNodes()[0];if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){var g=Ip({},e.options,!1);if(g.x=e.x,g.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(g,(function(e){null!=e&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var t,e,g,i,n;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var A,o=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(o),this._createSeperator(),this._createDescription(o.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,Fi(A=this.toggleEditMode).call(A,this))}this._temporaryBindUI("onTouch",Fi(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",Fi(e=this._finishConnect).call(e,this)),this._temporaryBindUI("onDrag",Fi(g=this._dragControlNode).call(g,this)),this._temporaryBindUI("onRelease",Fi(i=this._finishConnect).call(i,this)),this._temporaryBindUI("onDragStart",Fi(n=this._dragStartEdge).call(n,this)),this._temporaryBindUI("onHold",(function(){}))}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==il(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,Fi(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],void 0!==this.edgeBeingEditedId){var g,i,n,A,o=this.body.edges[this.edgeBeingEditedId],C=this._getNewTargetNode(o.from.x,o.from.y),I=this._getNewTargetNode(o.to.x,o.to.y);this.temporaryIds.nodes.push(C.id),this.temporaryIds.nodes.push(I.id),this.body.nodes[C.id]=C,this.body.nodeIndices.push(C.id),this.body.nodes[I.id]=I,this.body.nodeIndices.push(I.id),this._temporaryBindUI("onTouch",Fi(g=this._controlNodeTouch).call(g,this)),this._temporaryBindUI("onTap",(function(){})),this._temporaryBindUI("onHold",(function(){})),this._temporaryBindUI("onDragStart",Fi(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",Fi(n=this._controlNodeDrag).call(n,this)),this._temporaryBindUI("onDragEnd",Fi(A=this._controlNodeDragEnd).call(A,this)),this._temporaryBindUI("onMouseMove",(function(){})),this._temporaryBindEvent("beforeDrawing",(function(t){var e=o.edgeType.findBorderPositions(t);!1===C.selected&&(C.x=e.from.x,C.y=e.from.y),!1===I.selected&&(I.x=e.to.x,I.y=e.to.y)})),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var r=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(r.from.id,r.to.id)}}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var e=this.selectionHandler.getSelectedNodeIds(),g=this.selectionHandler.getSelectedEdgeIds(),i=void 0;if(e.length>0){for(var n=0;n<e.length;n++)if(!0===this.body.nodes[e[n]].isCluster)return void alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);"function"==typeof this.options.deleteNode&&(i=this.options.deleteNode)}else g.length>0&&"function"==typeof this.options.deleteEdge&&(i=this.options.deleteEdge);if("function"==typeof i){var A={nodes:e,edges:g};if(2!==i.length)throw new Error("The function for delete does not support two arguments (data, callback)");i(A,(function(e){null!=e&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(g),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){var t,e;void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",null!==(t=null===(e=this.options.locales[this.options.locale])||void 0===e?void 0:e.close)&&void 0!==t?t:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,e){var g=Ip({},this.options.controlNodeStyle);g.id="targetNode"+rx(),g.hidden=!1,g.physics=!1,g.x=t,g.y=e;var i=this.body.functions.createNode(g);return i.shape.boundingBox={left:t,right:t,top:e,bottom:e},i}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},ep(this.editModeDiv);var e=this.options.locales[this.options.locale],g=this._createButton("editMode","vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(g),this._bindElementEvents(g,Fi(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(ep(this.editModeDiv),ep(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanupDOMEventListeners",value:function(){var t,e,g=function(t,e){var g=void 0!==Kl&&iI(t)||t["@@iterator"];if(!g){if(Ic(t)||(g=function(t,e){var g;if(t){if("string"==typeof t)return UE(t,e);var i=ec(g=Object.prototype.toString.call(t)).call(g,8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?zC(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?UE(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){g&&(t=g);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,o=!0,C=!1;return{s:function(){g=g.call(t)},n:function(){var t=g.next();return o=t.done,t},e:function(t){C=!0,A=t},f:function(){try{o||null==g.return||g.return()}finally{if(C)throw A}}}}(ru(t=this._domEventListenerCleanupQueue).call(t,0));try{for(g.s();!(e=g.n()).done;)(0,e.value)()}catch(t){g.e(t)}finally{g.f()}}},{key:"_removeManipulationDOM",value:function(){this._clean(),ep(this.manipulationDiv),ep(this.editModeDiv),ep(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var e,g=this._createButton("addNode","vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(g),this._bindElementEvents(g,Fi(e=this.addNodeMode).call(e,this))}},{key:"_createAddEdgeButton",value:function(t){var e,g=this._createButton("addEdge","vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(g),this._bindElementEvents(g,Fi(e=this.addEdgeMode).call(e,this))}},{key:"_createEditNodeButton",value:function(t){var e,g=this._createButton("editNode","vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(g),this._bindElementEvents(g,Fi(e=this.editNode).call(e,this))}},{key:"_createEditEdgeButton",value:function(t){var e,g=this._createButton("editEdge","vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(g),this._bindElementEvents(g,Fi(e=this.editEdgeMode).call(e,this))}},{key:"_createDeleteButton",value:function(t){var e,g;g=this.options.rtl?"vis-delete-rtl":"vis-delete";var i=this._createButton("delete",g,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,Fi(e=this.deleteSelected).call(e,this))}},{key:"_createBackButton",value:function(t){var e,g=this._createButton("back","vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(g),this._bindElementEvents(g,Fi(e=this.showManipulatorToolbar).call(e,this))}},{key:"_createButton",value:function(t,e,g){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("button"),this.manipulationDOM[t+"Div"].className="vis-button "+e,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=i,this.manipulationDOM[t+"Label"].innerText=g,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=t,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}},{key:"_temporaryBindEvent",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:"_temporaryBindUI",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+wd(fc(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t<this.temporaryEventFunctions.length;t++){var e=this.temporaryEventFunctions[t].event,g=this.temporaryEventFunctions[t].boundFunction;this.body.emitter.off(e,g)}this.temporaryEventFunctions=[]}},{key:"_bindElementEvents",value:function(t,e){var g=new _p(t,{});dx(g,e),this._domEventListenerCleanupQueue.push((function(){g.destroy()}));var i=function(t){var g=t.keyCode,i=t.key;"Enter"!==i&&" "!==i&&13!==g&&32!==g||e()};t.addEventListener("keyup",i,!1),this._domEventListenerCleanupQueue.push((function(){t.removeEventListener("keyup",i,!1)}))}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var t=0;t<this.temporaryIds.edges.length;t++){var e;this.body.edges[this.temporaryIds.edges[t]].disconnect(),delete this.body.edges[this.temporaryIds.edges[t]];var g,i=fd(e=this.body.edgeIndices).call(e,this.temporaryIds.edges[t]);-1!==i&&ru(g=this.body.edgeIndices).call(g,i,1)}for(var n=0;n<this.temporaryIds.nodes.length;n++){var A;delete this.body.nodes[this.temporaryIds.nodes[n]];var o,C=fd(A=this.body.nodeIndices).call(A,this.temporaryIds.nodes[n]);-1!==C&&ru(o=this.body.nodeIndices).call(o,C,1)}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(t){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=fi({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(){var t=this.lastTouch,e=this.selectionHandler._pointerToPositionObject(t),g=this.body.nodes[this.temporaryIds.nodes[0]],i=this.body.nodes[this.temporaryIds.nodes[1]],n=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var A=g.isOverlappingWith(e),o=i.isOverlappingWith(e);!0===A?(this.selectedControlNode=g,n.edgeType.from=g):!0===o&&(this.selectedControlNode=i,n.edgeType.to=i),void 0!==this.selectedControlNode&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(t){this.body.emitter.emit("disablePhysics");var e=this.body.functions.getPointer(t.center),g=this.canvas.DOMtoCanvas(e);void 0!==this.selectedControlNode?(this.selectedControlNode.x=g.x,this.selectedControlNode.y=g.y):this.interactionHandler.onDrag(t),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(t){var e=this.body.functions.getPointer(t.center),g=this.selectionHandler._pointerToPositionObject(e),i=this.body.edges[this.edgeBeingEditedId];if(void 0!==this.selectedControlNode){this.selectionHandler.unselectAll();for(var n=this.selectionHandler._getAllNodesOverlappingWith(g),A=void 0,o=n.length-1;o>=0;o--)if(n[o]!==this.selectedControlNode.id){A=this.body.nodes[n[o]];break}if(void 0!==A&&void 0!==this.selectedControlNode)if(!0===A.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var C=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===C.id?this._performEditEdge(A.id,i.to.id):this._performEditEdge(i.from.id,A.id)}else i.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=fi({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;var e=this.lastTouch,g=this.selectionHandler.getNodeAt(e);if(void 0!==g)if(!0===g.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var i=this._getNewTargetNode(g.x,g.y);this.body.nodes[i.id]=i,this.body.nodeIndices.push(i.id);var n=this.body.functions.createEdge({id:"connectionEdge"+rx(),from:g.id,to:i.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[n.id]=n,this.body.edgeIndices.push(n.id),this.temporaryIds.nodes.push(i.id),this.temporaryIds.edges.push(n.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var e=this.body.functions.getPointer(t.center),g=this.selectionHandler._pointerToPositionObject(e),i=void 0;void 0!==this.temporaryIds.edges[0]&&(i=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var n=this.selectionHandler._getAllNodesOverlappingWith(g),A=void 0,o=n.length-1;o>=0;o--){var C;if(-1===fd(C=this.temporaryIds.nodes).call(C,n[o])){A=this.body.nodes[n[o]];break}}if(t.controlEdge={from:i,to:A?A.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",t,e),void 0!==this.temporaryIds.nodes[0]){var I=this.body.nodes[this.temporaryIds.nodes[0]];I.x=this.canvas._XconvertDOMtoCanvas(e.x),I.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var e=this.body.functions.getPointer(t.center),g=this.selectionHandler._pointerToPositionObject(e),i=void 0;void 0!==this.temporaryIds.edges[0]&&(i=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var n=this.selectionHandler._getAllNodesOverlappingWith(g),A=void 0,o=n.length-1;o>=0;o--){var C;if(-1===fd(C=this.temporaryIds.nodes).call(C,n[o])){A=this.body.nodes[n[o]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==A&&(!0===A.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[i]&&void 0!==this.body.nodes[A.id]&&this._performAddEdge(i,A.id)),t.controlEdge={from:i,to:A?A.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",t,e),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var e=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",t,e,void 0,!0)}},{key:"_performAddNode",value:function(t){var e=this,g={id:rx(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(g,(function(t){null!=t&&"addNode"===e.inMode&&e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(g),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,e){var g=this,i={from:t,to:e};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(i,(function(t){null!=t&&"addEdge"===g.inMode&&(g.body.data.edges.getDataSet().add(t),g.selectionHandler.unselectAll(),g.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,e){var g=this,i={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges.get(this.edgeBeingEditedId).label},n=this.options.editEdge;if("object"===il(n)&&(n=n.editWithoutDrag),"function"==typeof n){if(2!==n.length)throw new Error("The function for edit does not support two arguments (data, callback)");n(i,(function(t){null==t||"editEdge"!==g.inMode?(g.body.edges[i.id].updateEdgeType(),g.body.emitter.emit("_redraw"),g.showManipulatorToolbar()):(g.body.data.edges.getDataSet().update(t),g.selectionHandler.unselectAll(),g.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}(),QE="string",KE="boolean",XE="number",JE="array",qE="object",$E=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],tO={borderWidth:{number:XE},borderWidthSelected:{number:XE,undefined:"undefined"},brokenImage:{string:QE,undefined:"undefined"},chosen:{label:{boolean:KE,function:"function"},node:{boolean:KE,function:"function"},__type__:{object:qE,boolean:KE}},color:{border:{string:QE},background:{string:QE},highlight:{border:{string:QE},background:{string:QE},__type__:{object:qE,string:QE}},hover:{border:{string:QE},background:{string:QE},__type__:{object:qE,string:QE}},__type__:{object:qE,string:QE}},opacity:{number:XE,undefined:"undefined"},fixed:{x:{boolean:KE},y:{boolean:KE},__type__:{object:qE,boolean:KE}},font:{align:{string:QE},color:{string:QE},size:{number:XE},face:{string:QE},background:{string:QE},strokeWidth:{number:XE},strokeColor:{string:QE},vadjust:{number:XE},multi:{boolean:KE,string:QE},bold:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},boldital:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},ital:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},mono:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},__type__:{object:qE,string:QE}},group:{string:QE,number:XE,undefined:"undefined"},heightConstraint:{minimum:{number:XE},valign:{string:QE},__type__:{object:qE,boolean:KE,number:XE}},hidden:{boolean:KE},icon:{face:{string:QE},code:{string:QE},size:{number:XE},color:{string:QE},weight:{string:QE,number:XE},__type__:{object:qE}},id:{string:QE,number:XE},image:{selected:{string:QE,undefined:"undefined"},unselected:{string:QE,undefined:"undefined"},__type__:{object:qE,string:QE}},imagePadding:{top:{number:XE},right:{number:XE},bottom:{number:XE},left:{number:XE},__type__:{object:qE,number:XE}},label:{string:QE,undefined:"undefined"},labelHighlightBold:{boolean:KE},level:{number:XE,undefined:"undefined"},margin:{top:{number:XE},right:{number:XE},bottom:{number:XE},left:{number:XE},__type__:{object:qE,number:XE}},mass:{number:XE},physics:{boolean:KE},scaling:{min:{number:XE},max:{number:XE},label:{enabled:{boolean:KE},min:{number:XE},max:{number:XE},maxVisible:{number:XE},drawThreshold:{number:XE},__type__:{object:qE,boolean:KE}},customScalingFunction:{function:"function"},__type__:{object:qE}},shadow:{enabled:{boolean:KE},color:{string:QE},size:{number:XE},x:{number:XE},y:{number:XE},__type__:{object:qE,boolean:KE}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:KE,array:JE},borderRadius:{number:XE},interpolation:{boolean:KE},useImageSize:{boolean:KE},useBorderWithImage:{boolean:KE},coordinateOrigin:{string:["center","top-left"]},__type__:{object:qE}},size:{number:XE},title:{string:QE,dom:"dom",undefined:"undefined"},value:{number:XE,undefined:"undefined"},widthConstraint:{minimum:{number:XE},maximum:{number:XE},__type__:{object:qE,boolean:KE,number:XE}},x:{number:XE},y:{number:XE},__type__:{object:qE}},eO={configure:{enabled:{boolean:KE},filter:{boolean:KE,string:QE,array:JE,function:"function"},container:{dom:"dom"},showButton:{boolean:KE},__type__:{object:qE,boolean:KE,string:QE,array:JE,function:"function"}},edges:{arrows:{to:{enabled:{boolean:KE},scaleFactor:{number:XE},type:{string:$E},imageHeight:{number:XE},imageWidth:{number:XE},src:{string:QE},__type__:{object:qE,boolean:KE}},middle:{enabled:{boolean:KE},scaleFactor:{number:XE},type:{string:$E},imageWidth:{number:XE},imageHeight:{number:XE},src:{string:QE},__type__:{object:qE,boolean:KE}},from:{enabled:{boolean:KE},scaleFactor:{number:XE},type:{string:$E},imageWidth:{number:XE},imageHeight:{number:XE},src:{string:QE},__type__:{object:qE,boolean:KE}},__type__:{string:["from","to","middle"],object:qE}},endPointOffset:{from:{number:XE},to:{number:XE},__type__:{object:qE,number:XE}},arrowStrikethrough:{boolean:KE},background:{enabled:{boolean:KE},color:{string:QE},size:{number:XE},dashes:{boolean:KE,array:JE},__type__:{object:qE,boolean:KE}},chosen:{label:{boolean:KE,function:"function"},edge:{boolean:KE,function:"function"},__type__:{object:qE,boolean:KE}},color:{color:{string:QE},highlight:{string:QE},hover:{string:QE},inherit:{string:["from","to","both"],boolean:KE},opacity:{number:XE},__type__:{object:qE,string:QE}},dashes:{boolean:KE,array:JE},font:{color:{string:QE},size:{number:XE},face:{string:QE},background:{string:QE},strokeWidth:{number:XE},strokeColor:{string:QE},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:XE},multi:{boolean:KE,string:QE},bold:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},boldital:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},ital:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},mono:{color:{string:QE},size:{number:XE},face:{string:QE},mod:{string:QE},vadjust:{number:XE},__type__:{object:qE,string:QE}},__type__:{object:qE,string:QE}},hidden:{boolean:KE},hoverWidth:{function:"function",number:XE},label:{string:QE,undefined:"undefined"},labelHighlightBold:{boolean:KE},length:{number:XE,undefined:"undefined"},physics:{boolean:KE},scaling:{min:{number:XE},max:{number:XE},label:{enabled:{boolean:KE},min:{number:XE},max:{number:XE},maxVisible:{number:XE},drawThreshold:{number:XE},__type__:{object:qE,boolean:KE}},customScalingFunction:{function:"function"},__type__:{object:qE}},selectionWidth:{function:"function",number:XE},selfReferenceSize:{number:XE},selfReference:{size:{number:XE},angle:{number:XE},renderBehindTheNode:{boolean:KE},__type__:{object:qE}},shadow:{enabled:{boolean:KE},color:{string:QE},size:{number:XE},x:{number:XE},y:{number:XE},__type__:{object:qE,boolean:KE}},smooth:{enabled:{boolean:KE},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:XE},forceDirection:{string:["horizontal","vertical","none"],boolean:KE},__type__:{object:qE,boolean:KE}},title:{string:QE,undefined:"undefined"},width:{number:XE},widthConstraint:{maximum:{number:XE},__type__:{object:qE,boolean:KE,number:XE}},value:{number:XE,undefined:"undefined"},__type__:{object:qE}},groups:{useDefaultGroups:{boolean:KE},__any__:tO,__type__:{object:qE}},interaction:{dragNodes:{boolean:KE},dragView:{boolean:KE},hideEdgesOnDrag:{boolean:KE},hideEdgesOnZoom:{boolean:KE},hideNodesOnDrag:{boolean:KE},hover:{boolean:KE},keyboard:{enabled:{boolean:KE},speed:{x:{number:XE},y:{number:XE},zoom:{number:XE},__type__:{object:qE}},bindToWindow:{boolean:KE},autoFocus:{boolean:KE},__type__:{object:qE,boolean:KE}},multiselect:{boolean:KE},navigationButtons:{boolean:KE},selectable:{boolean:KE},selectConnectedEdges:{boolean:KE},hoverConnectedEdges:{boolean:KE},tooltipDelay:{number:XE},zoomView:{boolean:KE},zoomSpeed:{number:XE},__type__:{object:qE}},layout:{randomSeed:{undefined:"undefined",number:XE,string:QE},improvedLayout:{boolean:KE},clusterThreshold:{number:XE},hierarchical:{enabled:{boolean:KE},levelSeparation:{number:XE},nodeSpacing:{number:XE},treeSpacing:{number:XE},blockShifting:{boolean:KE},edgeMinimization:{boolean:KE},parentCentralization:{boolean:KE},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:qE,boolean:KE}},__type__:{object:qE}},manipulation:{enabled:{boolean:KE},initiallyActive:{boolean:KE},addNode:{boolean:KE,function:"function"},addEdge:{boolean:KE,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:qE,boolean:KE,function:"function"}},deleteNode:{boolean:KE,function:"function"},deleteEdge:{boolean:KE,function:"function"},controlNodeStyle:tO,__type__:{object:qE,boolean:KE}},nodes:tO,physics:{enabled:{boolean:KE},barnesHut:{theta:{number:XE},gravitationalConstant:{number:XE},centralGravity:{number:XE},springLength:{number:XE},springConstant:{number:XE},damping:{number:XE},avoidOverlap:{number:XE},__type__:{object:qE}},forceAtlas2Based:{theta:{number:XE},gravitationalConstant:{number:XE},centralGravity:{number:XE},springLength:{number:XE},springConstant:{number:XE},damping:{number:XE},avoidOverlap:{number:XE},__type__:{object:qE}},repulsion:{centralGravity:{number:XE},springLength:{number:XE},springConstant:{number:XE},nodeDistance:{number:XE},damping:{number:XE},__type__:{object:qE}},hierarchicalRepulsion:{centralGravity:{number:XE},springLength:{number:XE},springConstant:{number:XE},nodeDistance:{number:XE},damping:{number:XE},avoidOverlap:{number:XE},__type__:{object:qE}},maxVelocity:{number:XE},minVelocity:{number:XE},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:KE},iterations:{number:XE},updateInterval:{number:XE},onlyDynamicEdges:{boolean:KE},fit:{boolean:KE},__type__:{object:qE,boolean:KE}},timestep:{number:XE},adaptiveTimestep:{boolean:KE},wind:{x:{number:XE},y:{number:XE},__type__:{object:qE}},__type__:{object:qE,boolean:KE}},autoResize:{boolean:KE},clickToUse:{boolean:KE},locale:{string:QE},locales:{__any__:{any:"any"},__type__:{object:qE}},height:{string:QE},width:{string:QE},__type__:{object:qE}},gO={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},iO=function(t,e,g){var i;return!(!Tu(t).call(t,"physics")||!Tu(i=gO.physics.solver).call(i,e)||g.physics.solver===e||"wind"===e)},nO=Object.freeze({__proto__:null,allOptions:eO,configuratorHideOption:iO,configureOptions:gO}),AO=function(){function t(){nI(this,t)}return Cl(t,[{key:"getDistances",value:function(t,e,g){for(var i={},n=t.edges,A=0;A<e.length;A++){var o={};i[e[A]]=o;for(var C=0;C<e.length;C++)o[e[C]]=A==C?0:1e9}for(var I=0;I<g.length;I++){var r=n[g[I]];!0===r.connected&&void 0!==i[r.fromId]&&void 0!==i[r.toId]&&(i[r.fromId][r.toId]=1,i[r.toId][r.fromId]=1)}for(var s=e.length,a=0;a<s;a++)for(var l=e[a],c=i[l],u=0;u<s-1;u++)for(var d=e[u],h=i[d],f=u+1;f<s;f++){var p=e[f],v=i[p],y=Math.min(h[p],h[l]+c[p]);h[p]=y,v[d]=y}return i}}]),t}(),oO=function(){function t(e,g,i){nI(this,t),this.body=e,this.springLength=g,this.springConstant=i,this.distanceSolver=new AO}return Cl(t,[{key:"setOptions",value:function(t){t&&(t.springLength&&(this.springLength=t.springLength),t.springConstant&&(this.springConstant=t.springConstant))}},{key:"solve",value:function(t,e){var g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(i),this._createK_matrix(i),this._createE_matrix();for(var n=0,A=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),o=1e9,C=0,I=0,r=0,s=0,a=0;o>.01&&n<A;){n+=1;var l=Hl(this._getHighestEnergyNode(g),4);for(C=l[0],o=l[1],I=l[2],r=l[3],s=o,a=0;s>1&&a<5;){a+=1,this._moveNode(C,I,r);var c=Hl(this._getEnergy(C),3);s=c[0],I=c[1],r=c[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var e=this.body.nodeIndices,g=this.body.nodes,i=0,n=e[0],A=0,o=0,C=0;C<e.length;C++){var I=e[C];if(!0!==g[I].predefinedPosition||!0===g[I].isCluster&&!0===t||!0!==g[I].options.fixed.x||!0!==g[I].options.fixed.y){var r=Hl(this._getEnergy(I),3),s=r[0],a=r[1],l=r[2];i<s&&(i=s,n=I,A=a,o=l)}}return[n,i,A,o]}},{key:"_getEnergy",value:function(t){var e=Hl(this.E_sums[t],2),g=e[0],i=e[1];return[Math.sqrt(Math.pow(g,2)+Math.pow(i,2)),g,i]}},{key:"_moveNode",value:function(t,e,g){for(var i=this.body.nodeIndices,n=this.body.nodes,A=0,o=0,C=0,I=n[t].x,r=n[t].y,s=this.K_matrix[t],a=this.L_matrix[t],l=0;l<i.length;l++){var c=i[l];if(c!==t){var u=n[c].x,d=n[c].y,h=s[c],f=a[c],p=1/Math.pow(Math.pow(I-u,2)+Math.pow(r-d,2),1.5);A+=h*(1-f*Math.pow(r-d,2)*p),o+=h*(f*(I-u)*(r-d)*p),C+=h*(1-f*Math.pow(I-u,2)*p)}}var v=(e/A+g/o)/(o/A-C/o),y=-(o*v+e)/A;n[t].x+=y,n[t].y+=v,this._updateE_matrix(t)}},{key:"_createL_matrix",value:function(t){var e=this.body.nodeIndices,g=this.springLength;this.L_matrix=[];for(var i=0;i<e.length;i++){this.L_matrix[e[i]]={};for(var n=0;n<e.length;n++)this.L_matrix[e[i]][e[n]]=g*t[e[i]][e[n]]}}},{key:"_createK_matrix",value:function(t){var e=this.body.nodeIndices,g=this.springConstant;this.K_matrix=[];for(var i=0;i<e.length;i++){this.K_matrix[e[i]]={};for(var n=0;n<e.length;n++)this.K_matrix[e[i]][e[n]]=g*Math.pow(t[e[i]][e[n]],-2)}}},{key:"_createE_matrix",value:function(){var t=this.body.nodeIndices,e=this.body.nodes;this.E_matrix={},this.E_sums={};for(var g=0;g<t.length;g++)this.E_matrix[t[g]]=[];for(var i=0;i<t.length;i++){for(var n=t[i],A=e[n].x,o=e[n].y,C=0,I=0,r=i;r<t.length;r++){var s=t[r];if(s!==n){var a=e[s].x,l=e[s].y,c=1/Math.sqrt(Math.pow(A-a,2)+Math.pow(o-l,2));this.E_matrix[n][r]=[this.K_matrix[n][s]*(A-a-this.L_matrix[n][s]*(A-a)*c),this.K_matrix[n][s]*(o-l-this.L_matrix[n][s]*(o-l)*c)],this.E_matrix[s][i]=this.E_matrix[n][r],C+=this.E_matrix[n][r][0],I+=this.E_matrix[n][r][1]}}this.E_sums[n]=[C,I]}}},{key:"_updateE_matrix",value:function(t){for(var e=this.body.nodeIndices,g=this.body.nodes,i=this.E_matrix[t],n=this.K_matrix[t],A=this.L_matrix[t],o=g[t].x,C=g[t].y,I=0,r=0,s=0;s<e.length;s++){var a=e[s];if(a!==t){var l=i[s],c=l[0],u=l[1],d=g[a].x,h=g[a].y,f=1/Math.sqrt(Math.pow(o-d,2)+Math.pow(C-h,2)),p=n[a]*(o-d-A[a]*(o-d)*f),v=n[a]*(C-h-A[a]*(C-h)*f);i[s]=[p,v],I+=p,r+=v;var y=this.E_sums[a];y[0]+=p-c,y[1]+=v-u}}this.E_sums[t]=[I,r]}}]),t}();function CO(t,e,g){var i,n,A,o,C=this;if(!(this instanceof CO))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:pv,clickToUse:!1},fi(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:Fi(i=this.on).call(i,this),off:Fi(n=this.off).call(n,this),emit:Fi(A=this.emit).call(A,this),once:Fi(o=this.once).call(o,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new yv((function(){return C.body.emitter.emit("_requestRedraw")})),this.groups=new Hy,this.canvas=new fx(this.body),this.selectionHandler=new Pk(this.body,this.canvas),this.interactionHandler=new bx(this.body,this.canvas,this.selectionHandler),this.view=new px(this.body,this.canvas),this.renderer=new cx(this.body,this.canvas),this.physics=new ix(this.body),this.layoutEngine=new WE(this.body),this.clustering=new lx(this.body),this.manipulation=new HE(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new ow(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new Qw(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new oO(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(g),this.setData(e)}Ui(CO.prototype),CO.prototype.setOptions=function(t){var e=this;if(null===t&&(t=void 0),void 0!==t){if(!0===jp.validate(t,eO)&&console.error("%cErrors have been found in the supplied options object.",Fp),op(["locale","locales","clickToUse"],this.options,t),void 0!==t.locale&&(t.locale=function(t,e){try{var g=Hl(e.split(/[-_ /]/,2),2),i=g[0],n=g[1],A=null!=i?i.toLowerCase():null,o=null!=n?n.toUpperCase():null;if(A&&o){var C,I=A+"-"+o;if(Object.prototype.hasOwnProperty.call(t,I))return I;console.warn(tc(C="Unknown variant ".concat(o," of language ")).call(C,A,"."))}if(A){var r=A;if(Object.prototype.hasOwnProperty.call(t,r))return r;console.warn("Unknown language ".concat(A))}return console.warn("Unknown locale ".concat(e,", falling back to English.")),"en"}catch(t){return console.error(t),console.warn("Unexpected error while normalizing locale ".concat(e,", falling back to English.")),"en"}}(t.locales||this.options.locales,t.locale)),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),void 0!==t.groups&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new Bp(this,this.body.container,gO,this.canvas.pixelRatio,iO)),this.configurator.setOptions(t.configure)),this.configurator&&!0===this.configurator.options.enabled){var g={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Ip(g.nodes,this.nodesHandler.options),Ip(g.edges,this.edgesHandler.options),Ip(g.layout,this.layoutEngine.options),Ip(g.interaction,this.selectionHandler.options),Ip(g.interaction,this.renderer.options),Ip(g.interaction,this.interactionHandler.options),Ip(g.manipulation,this.manipulation.options),Ip(g.physics,this.physics.options),Ip(g.global,this.canvas.options),Ip(g.global,this.options),this.configurator.setModuleOptions(g)}void 0!==t.clickToUse?!0===t.clickToUse?void 0===this.activator&&(this.activator=new Mp(this.canvas.frame),this.activator.on("change",(function(){e.body.emitter.emit("activate")}))):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},CO.prototype._updateVisibleIndices=function(){var t=this.body.nodes,e=this.body.edges;for(var g in this.body.nodeIndices=[],this.body.edgeIndices=[],t)Object.prototype.hasOwnProperty.call(t,g)&&(this.clustering._isClusteredNode(g)||!1!==t[g].options.hidden||this.body.nodeIndices.push(t[g].id));for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i],A=t[n.fromId],o=t[n.toId],C=void 0!==A&&void 0!==o;!this.clustering._isClusteredEdge(i)&&!1===n.options.hidden&&C&&!1===A.options.hidden&&!1===o.options.hidden&&this.body.edgeIndices.push(n.id)}},CO.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")})),this.body.emitter.on("_dataUpdated",(function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")}))},CO.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or  parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var e=uv(t.dot);this.setData(e)}else if(t&&t.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var g=hv(t.gephi);this.setData(g)}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},CO.prototype.destroy=function(){for(var t in this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images,this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&delete this.body.nodes[t];for(var e in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,e)&&delete this.body.edges[e];ep(this.body.container)},CO.prototype._updateValueRange=function(t){var e,g=void 0,i=void 0,n=0;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var A=t[e].getValue();void 0!==A&&(g=void 0===g?A:Math.min(A,g),i=void 0===i?A:Math.max(A,i),n+=A)}if(void 0!==g&&void 0!==i)for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&t[e].setValueRange(g,i,n)},CO.prototype.isActive=function(){return!this.activator||this.activator.active},CO.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},CO.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},CO.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},CO.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},CO.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},CO.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},CO.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},CO.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},CO.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},CO.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},CO.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)},CO.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)},CO.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)},CO.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)},CO.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)},CO.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},CO.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},CO.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},CO.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},CO.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},CO.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},CO.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},CO.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},CO.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},CO.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},CO.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},CO.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)},CO.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},CO.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},CO.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},CO.prototype.getConnectedNodes=function(t){return void 0!==this.body.nodes[t]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},CO.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},CO.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},CO.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},CO.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},CO.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},CO.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},CO.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)},CO.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)},CO.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},CO.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},CO.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},CO.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},CO.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()},CO.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},CO.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},CO.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},CO.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},CO.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},CO.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},CO.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},CO.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};var IO=uv;t.Network=CO,t.NetworkImages=yv,t.networkDOTParser=dv,t.networkGephiParser=fv,t.networkOptions=nO,t.parseDOTNetwork=IO,t.parseGephiNetwork=hv}(e,g(5358))},6021:(t,e)=>{"use strict";e.Z=(t,e)=>{const g=t.__vccOpts||t;for(const[t,i]of e)g[t]=i;return g}},5070:(t,e,g)=>{"use strict";g.d(e,{Z:()=>_});var i=g(6738),n=g.n(i),A=g(7705),o=g.n(A),C=g(6742),I=g.n(C),r=new URL(g(7063),g.b),s=new URL(g(5250),g.b),a=new URL(g(371),g.b),l=new URL(g(866),g.b),c=new URL(g(5754),g.b),u=new URL(g(6077),g.b),d=new URL(g(1842),g.b),h=new URL(g(2254),g.b),f=new URL(g(1530),g.b),p=new URL(g(7407),g.b),v=new URL(g(6664),g.b),y=new URL(g(1673),g.b),m=new URL(g(4841),g.b),b=o()(n()),w=I()(r),x=I()(s),k=I()(a),E=I()(l),O=I()(c),T=I()(u),D=I()(d),R=I()(h),S=I()(f),N=I()(p),P=I()(v),M=I()(y),B=I()(m);b.push([t.id,`.vis-overlay{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}.vis [class*=span]{min-height:0;width:auto}div.vis-color-picker{background-color:#fff;border-radius:15px;box-shadow:0 0 10px 0 rgba(0,0,0,.5);display:none;height:444px;left:30px;margin-left:30px;margin-top:-140px;padding:10px;position:absolute;top:0;width:310px;z-index:1}div.vis-color-picker div.vis-arrow{left:5px;position:absolute;top:147px}div.vis-color-picker div.vis-arrow:after,div.vis-color-picker div.vis-arrow:before{border:solid transparent;content:" ";height:0;pointer-events:none;position:absolute;right:100%;top:50%;width:0}div.vis-color-picker div.vis-arrow:after{border-color:hsla(0,0%,100%,0) #fff hsla(0,0%,100%,0) hsla(0,0%,100%,0);border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{cursor:pointer;height:289px;position:absolute;width:289px}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{background:#4c4c4c;background:-moz-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);background:-o-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:-ms-linear-gradient(top,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);background:linear-gradient(180deg,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);border:1px solid #fff;border-radius:15px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#4c4c4c",endColorstr="#131313",GradientType=0);height:15px;left:137px;position:absolute;top:137px;width:15px}div.vis-color-picker div.vis-new-color{left:159px;padding-right:2px;text-align:right}div.vis-color-picker div.vis-initial-color,div.vis-color-picker div.vis-new-color{border:1px solid rgba(0,0,0,.1);border-radius:5px;color:rgba(0,0,0,.4);font-size:10px;height:20px;line-height:20px;position:absolute;top:380px;vertical-align:middle;width:140px}div.vis-color-picker div.vis-initial-color{left:10px;padding-left:2px;text-align:left}div.vis-color-picker div.vis-label{left:10px;position:absolute;width:300px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{background-color:#f7f7f7;border:2px solid #d9d9d9;border-radius:10px;cursor:pointer;height:25px;line-height:25px;position:absolute;text-align:center;top:410px;vertical-align:middle;width:68px}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{height:20px;width:290px}div.vis-configuration{display:block;float:left;font-size:12px;position:relative}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper:after{clear:both;content:"";display:block}div.vis-configuration.vis-config-option-container{background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;display:block;left:10px;margin-top:20px;padding-left:5px;width:495px}div.vis-configuration.vis-config-button{background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;cursor:pointer;display:block;height:25px;left:10px;line-height:25px;margin-bottom:30px;margin-top:20px;padding-left:5px;vertical-align:middle;width:495px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;height:25px;line-height:25px;vertical-align:middle;width:495px}div.vis-configuration.vis-config-item.vis-config-s2{background-color:#f7f8fa;border-radius:3px;left:10px;padding-left:5px}div.vis-configuration.vis-config-item.vis-config-s3{background-color:#e4e9f0;border-radius:3px;left:20px;padding-left:5px}div.vis-configuration.vis-config-item.vis-config-s4{background-color:#cfd8e6;border-radius:3px;left:30px;padding-left:5px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}div.vis-configuration.vis-config-label{height:25px;line-height:25px;width:120px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{border:1px solid #444;border-radius:2px;cursor:pointer;height:19px;margin:0;padding:0;top:1px;width:30px}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{margin:0;padding:1px;pointer-events:none;position:relative;top:-5px;width:60px}input.vis-configuration.vis-config-range{-webkit-appearance:none;background-color:transparent;border:0 solid #fff;height:20px;width:300px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);border:1px solid #999;border-radius:3px;box-shadow:0 0 3px 0 #aaa;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#c8c8c8",GradientType=0);height:5px;width:300px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;background:#3876c2;background:-moz-linear-gradient(top,#3876c2 0,#385380 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2,#385380);background:-o-linear-gradient(top,#3876c2 0,#385380 100%);background:-ms-linear-gradient(top,#3876c2 0,#385380 100%);background:linear-gradient(180deg,#3876c2 0,#385380);border:1px solid #14334b;border-radius:50%;box-shadow:0 0 1px 0 #111927;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#3876c2",endColorstr="#385380",GradientType=0);height:17px;margin-top:-7px;width:17px}input.vis-configuration.vis-config-range:focus{outline:none}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-moz-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d,#c8c8c8 99%);background:-o-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#9d9d9d 0,#c8c8c8 99%);background:linear-gradient(180deg,#9d9d9d 0,#c8c8c8 99%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#9d9d9d",endColorstr="#c8c8c8",GradientType=0)}input.vis-configuration.vis-config-range::-moz-range-track{background:#dedede;background:-moz-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:-o-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:-ms-linear-gradient(top,#dedede 0,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);border:1px solid #999;border-radius:3px;box-shadow:0 0 3px 0 #aaa;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#c8c8c8",GradientType=0);height:10px;width:300px}input.vis-configuration.vis-config-range::-moz-range-thumb{background:#385380;border:none;border-radius:50%;height:16px;width:16px}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{background:transparent;border-color:transparent;border-width:6px 0;color:transparent;height:5px;width:300px}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{background:#385380;border:none;border-radius:50%;height:16px;width:16px}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{background:rgba(57,76,89,.85);border:2px solid #f2faff;border-radius:4px;color:#fff;font-size:14px;height:30px;line-height:30px;position:absolute;text-align:center;-webkit-transition:opacity .3s ease-in-out;-moz-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;width:150px}.vis-configuration-popup:after,.vis-configuration-popup:before{border:solid transparent;content:" ";height:0;left:100%;pointer-events:none;position:absolute;top:50%;width:0}.vis-configuration-popup:after{border-color:rgba(136,183,213,0) rgba(136,183,213,0) rgba(136,183,213,0) rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0) rgba(194,225,245,0) rgba(194,225,245,0) #f2faff;border-width:12px;margin-top:-12px}div.vis-tooltip{background-color:#f5f4ed;border:1px solid #808074;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;box-shadow:3px 3px 10px rgba(0,0,0,.2);color:#000;font-family:verdana;font-size:14px;padding:5px;pointer-events:none;position:absolute;visibility:hidden;white-space:nowrap;z-index:5}div.vis-network div.vis-navigation div.vis-button{-webkit-touch-callout:none;background-position:2px 2px;background-repeat:no-repeat;-moz-border-radius:17px;border-radius:17px;cursor:pointer;display:inline-block;height:34px;position:absolute;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:34px}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,.3)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url(${w});bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url(${x});bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url(${k});bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url(${E});bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url(${O});bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url(${T});bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url(${D});bottom:50px;right:15px}div.vis-network div.vis-manipulation{background:#fff;background:-moz-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff,#fcfcfc 48%,#fafafa 50%,#fcfcfc);background:-o-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:-ms-linear-gradient(top,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%);background:linear-gradient(180deg,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc);border:0 solid #d6d9d8;border-bottom:1px;box-sizing:content-box;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#fcfcfc",GradientType=0);height:28px;left:0;padding-top:4px;position:absolute;top:0;width:100%}div.vis-network button.vis-edit-mode,div.vis-network div.vis-edit-mode{height:30px;left:0;position:absolute;top:5px}div.vis-network button.vis-close{-webkit-touch-callout:none;background-color:transparent;background-image:url(${R});background-position:20px 3px;background-repeat:no-repeat;border:none;cursor:pointer;height:30px;position:absolute;right:0;top:0;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:30px}div.vis-network button.vis-close:hover{opacity:.6}div.vis-network div.vis-edit-mode button.vis-button,div.vis-network div.vis-manipulation button.vis-button{-webkit-touch-callout:none;background-color:transparent;background-position:0 0;background-repeat:no-repeat;border:none;-moz-border-radius:15px;border-radius:15px;box-sizing:content-box;cursor:pointer;float:left;font-family:verdana;font-size:12px;height:24px;margin-left:10px;padding:0 8px;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation button.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,.2)}div.vis-network div.vis-manipulation button.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,.5)}div.vis-network div.vis-manipulation button.vis-button.vis-back{background-image:url(${S})}div.vis-network div.vis-manipulation div.vis-none:hover{box-shadow:1px 1px 8px transparent;cursor:default}div.vis-network div.vis-manipulation div.vis-none:active{box-shadow:1px 1px 8px transparent}div.vis-network div.vis-manipulation div.vis-none{line-height:23px;padding:0}div.vis-network div.vis-manipulation div.notification{font-weight:700;margin:2px}div.vis-network div.vis-manipulation button.vis-button.vis-add{background-image:url(${N})}div.vis-network div.vis-edit-mode button.vis-button.vis-edit,div.vis-network div.vis-manipulation button.vis-button.vis-edit{background-image:url(${P})}div.vis-network div.vis-edit-mode button.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation button.vis-button.vis-connect{background-image:url(${M})}div.vis-network div.vis-manipulation button.vis-button.vis-delete{background-image:url(${B})}div.vis-network div.vis-edit-mode div.vis-label,div.vis-network div.vis-manipulation div.vis-label{line-height:25px;margin:0 0 0 23px}div.vis-network div.vis-manipulation div.vis-separator-line{background-color:#bdbdbd;display:inline-block;float:left;height:21px;margin:0 7px 0 15px;width:1px}`,""]);const _=b},4925:(t,e,g)=>{"use strict";g.d(e,{Z:()=>C});var i=g(6738),n=g.n(i),A=g(7705),o=g.n(A)()(n());o.push([t.id,"\n.fullScreen {\n    z-index: 9;\n    position: absolute;\n    top: -8px;\n    left: 0;\n    width: 100%;\n    height: 100%;\n}\n.fullScreenButton {\n    display: none;\n    text-align: right;\n    position: relative;\n    z-index: 1;\n    top: 57px;\n    right: 10px;\n}\n.back-title {\n  margin-left: 40px;\n  border-bottom: 1px solid;\n  width: fit-content;\n  cursor: pointer;\n}\n.noselect {\n  -webkit-touch-callout: none!important; /* iOS Safari */\n    -webkit-user-select: none!important; /* Safari */\n     -khtml-user-select: none!important; /* Konqueror HTML */\n       -moz-user-select: none!important; /* Old versions of Firefox */\n        -ms-user-select: none!important; /* Internet Explorer/Edge */\n            user-select: none!important; /* Non-prefixed version, currently\n                                  supported by Chrome, Edge, Opera and Firefox */\n}\n",""]);const C=o},3379:t=>{"use strict";var e=[];function g(t){for(var g=-1,i=0;i<e.length;i++)if(e[i].identifier===t){g=i;break}return g}function i(t,i){for(var A={},o=[],C=0;C<t.length;C++){var I=t[C],r=i.base?I[0]+i.base:I[0],s=A[r]||0,a="".concat(r," ").concat(s);A[r]=s+1;var l=g(a),c={css:I[1],media:I[2],sourceMap:I[3],supports:I[4],layer:I[5]};if(-1!==l)e[l].references++,e[l].updater(c);else{var u=n(c,i);i.byIndex=C,e.splice(C,0,{identifier:a,updater:u,references:1})}o.push(a)}return o}function n(t,e){var g=e.domAPI(e);return g.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;g.update(t=e)}else g.remove()}}t.exports=function(t,n){var A=i(t=t||[],n=n||{});return function(t){t=t||[];for(var o=0;o<A.length;o++){var C=g(A[o]);e[C].references--}for(var I=i(t,n),r=0;r<A.length;r++){var s=g(A[r]);0===e[s].references&&(e[s].updater(),e.splice(s,1))}A=I}}},569:t=>{"use strict";var e={};t.exports=function(t,g){var i=function(t){if(void 0===e[t]){var g=document.querySelector(t);if(window.HTMLIFrameElement&&g instanceof window.HTMLIFrameElement)try{g=g.contentDocument.head}catch(t){g=null}e[t]=g}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(g)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,g)=>{"use strict";t.exports=function(t){var e=g.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(g){!function(t,e,g){var i="";g.supports&&(i+="@supports (".concat(g.supports,") {")),g.media&&(i+="@media ".concat(g.media," {"));var n=void 0!==g.layer;n&&(i+="@layer".concat(g.layer.length>0?" ".concat(g.layer):""," {")),i+=g.css,n&&(i+="}"),g.media&&(i+="}"),g.supports&&(i+="}");var A=g.sourceMap;A&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(A))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,g)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},2254:t=>{"use strict";t.exports=""},6077:t=>{"use strict";t.exports=""},5754:t=>{"use strict";t.exports=""},5250:t=>{"use strict";t.exports=""},7063:t=>{"use strict";t.exports=""},1842:t=>{"use strict";t.exports=""},866:t=>{"use strict";t.exports=""},371:t=>{"use strict";t.exports=""},7407:t=>{"use strict";t.exports=""},4841:t=>{"use strict";t.exports=""},1673:t=>{"use strict";t.exports=""},1530:t=>{"use strict";t.exports=""},6664:t=>{"use strict";t.exports=""}},e={};function g(i){var n=e[i];if(void 0!==n)return n.exports;var A=e[i]={id:i,exports:{}};return t[i].call(A.exports,A,A.exports,g),A.exports}g.m=t,g.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return g.d(e,{a:e}),e},g.d=(t,e)=>{for(var i in e)g.o(e,i)&&!g.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),g.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),g.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},g.b=document.baseURI||self.location.href,g.nc=void 0,(()=>{"use strict";var t={};function e(t,e){const g=new Set(t.split(","));return e?t=>g.has(t.toLowerCase()):t=>g.has(t)}g.r(t),g.d(t,{hasBrowserEnv:()=>aC,hasStandardBrowserEnv:()=>lC,hasStandardBrowserWebWorkerEnv:()=>uC});const i={},n=[],A=()=>{},o=()=>!1,C=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),I=t=>t.startsWith("onUpdate:"),r=Object.assign,s=(t,e)=>{const g=t.indexOf(e);g>-1&&t.splice(g,1)},a=Object.prototype.hasOwnProperty,l=(t,e)=>a.call(t,e),c=Array.isArray,u=t=>"[object Map]"===w(t),d=t=>"[object Set]"===w(t),h=t=>"[object Date]"===w(t),f=t=>"function"==typeof t,p=t=>"string"==typeof t,v=t=>"symbol"==typeof t,y=t=>null!==t&&"object"==typeof t,m=t=>(y(t)||f(t))&&f(t.then)&&f(t.catch),b=Object.prototype.toString,w=t=>b.call(t),x=t=>w(t).slice(8,-1),k=t=>"[object Object]"===w(t),E=t=>p(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,O=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=t=>{const e=Object.create(null);return g=>e[g]||(e[g]=t(g))},D=/-(\w)/g,R=T((t=>t.replace(D,((t,e)=>e?e.toUpperCase():"")))),S=/\B([A-Z])/g,N=T((t=>t.replace(S,"-$1").toLowerCase())),P=T((t=>t.charAt(0).toUpperCase()+t.slice(1))),M=T((t=>t?`on${P(t)}`:"")),B=(t,e)=>!Object.is(t,e),_=(t,e)=>{for(let g=0;g<t.length;g++)t[g](e)},z=(t,e,g)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:g})},F=t=>{const e=parseFloat(t);return isNaN(e)?t:e},j=t=>{const e=p(t)?Number(t):NaN;return isNaN(e)?t:e};let L;const Z=()=>L||(L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==g.g?g.g:{});function G(t){if(c(t)){const e={};for(let g=0;g<t.length;g++){const i=t[g],n=p(i)?U(i):G(i);if(n)for(const t in n)e[t]=n[t]}return e}if(p(t)||y(t))return t}const V=/;(?![^(]*\))/g,Y=/:([^]+)/,W=/\/\*[^]*?\*\//g;function U(t){const e={};return t.replace(W,"").split(V).forEach((t=>{if(t){const g=t.split(Y);g.length>1&&(e[g[0].trim()]=g[1].trim())}})),e}function H(t){let e="";if(p(t))e=t;else if(c(t))for(let g=0;g<t.length;g++){const i=H(t[g]);i&&(e+=i+" ")}else if(y(t))for(const g in t)t[g]&&(e+=g+" ");return e.trim()}const Q=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function K(t){return!!t||""===t}function X(t,e){if(t===e)return!0;let g=h(t),i=h(e);if(g||i)return!(!g||!i)&&t.getTime()===e.getTime();if(g=v(t),i=v(e),g||i)return t===e;if(g=c(t),i=c(e),g||i)return!(!g||!i)&&function(t,e){if(t.length!==e.length)return!1;let g=!0;for(let i=0;g&&i<t.length;i++)g=X(t[i],e[i]);return g}(t,e);if(g=y(t),i=y(e),g||i){if(!g||!i)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const g in t){const i=t.hasOwnProperty(g),n=e.hasOwnProperty(g);if(i&&!n||!i&&n||!X(t[g],e[g]))return!1}}return String(t)===String(e)}function J(t,e){return t.findIndex((t=>X(t,e)))}const q=t=>p(t)?t:null==t?"":c(t)||y(t)&&(t.toString===b||!f(t.toString))?JSON.stringify(t,$,2):String(t),$=(t,e)=>e&&e.__v_isRef?$(t,e.value):u(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,g],i)=>(t[tt(e,i)+" =>"]=g,t)),{})}:d(e)?{[`Set(${e.size})`]:[...e.values()].map((t=>tt(t)))}:v(e)?tt(e):!y(e)||c(e)||k(e)?e:String(e),tt=(t,e="")=>{var g;return v(t)?`Symbol(${null!=(g=t.description)?g:e})`:t};let et,gt;class it{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=et,!t&&et&&(this.index=(et.scopes||(et.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=et;try{return et=this,t()}finally{et=e}}}on(){et=this}off(){et=this.parent}stop(t){if(this._active){let e,g;for(e=0,g=this.effects.length;e<g;e++)this.effects[e].stop();for(e=0,g=this.cleanups.length;e<g;e++)this.cleanups[e]();if(this.scopes)for(e=0,g=this.scopes.length;e<g;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.parent=void 0,this._active=!1}}}class nt{constructor(t,e,g,i){this.fn=t,this.trigger=e,this.scheduler=g,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(t,e=et){e&&e.active&&e.effects.push(t)}(this,i)}get dirty(){if(1===this._dirtyLevel){lt();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(At(e.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),ct()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=rt,e=gt;try{return rt=!0,gt=this,this._runnings++,ot(this),this.fn()}finally{Ct(this),this._runnings--,gt=e,rt=t}}stop(){var t;this.active&&(ot(this),Ct(this),null==(t=this.onStop)||t.call(this),this.active=!1)}}function At(t){return t.value}function ot(t){t._trackId++,t._depsLength=0}function Ct(t){if(t.deps&&t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)It(t.deps[e],t);t.deps.length=t._depsLength}}function It(t,e){const g=t.get(e);void 0!==g&&e._trackId!==g&&(t.delete(e),0===t.size&&t.cleanup())}let rt=!0,st=0;const at=[];function lt(){at.push(rt),rt=!1}function ct(){const t=at.pop();rt=void 0===t||t}function ut(){st++}function dt(){for(st--;!st&&ft.length;)ft.shift()()}function ht(t,e,g){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const g=t.deps[t._depsLength];g!==e?(g&&It(g,t),t.deps[t._depsLength++]=e):t._depsLength++}}const ft=[];function pt(t,e,g){ut();for(const g of t.keys())if(g._dirtyLevel<e&&t.get(g)===g._trackId){const t=g._dirtyLevel;g._dirtyLevel=e,0===t&&(g._shouldSchedule=!0,g.trigger())}vt(t),dt()}function vt(t){for(const e of t.keys())e.scheduler&&e._shouldSchedule&&(!e._runnings||e.allowRecurse)&&t.get(e)===e._trackId&&(e._shouldSchedule=!1,ft.push(e.scheduler))}const yt=(t,e)=>{const g=new Map;return g.cleanup=t,g.computed=e,g},mt=new WeakMap,bt=Symbol(""),wt=Symbol("");function xt(t,e,g){if(rt&&gt){let e=mt.get(t);e||mt.set(t,e=new Map);let i=e.get(g);i||e.set(g,i=yt((()=>e.delete(g)))),ht(gt,i)}}function kt(t,e,g,i,n,A){const o=mt.get(t);if(!o)return;let C=[];if("clear"===e)C=[...o.values()];else if("length"===g&&c(t)){const t=Number(i);o.forEach(((e,g)=>{("length"===g||!v(g)&&g>=t)&&C.push(e)}))}else switch(void 0!==g&&C.push(o.get(g)),e){case"add":c(t)?E(g)&&C.push(o.get("length")):(C.push(o.get(bt)),u(t)&&C.push(o.get(wt)));break;case"delete":c(t)||(C.push(o.get(bt)),u(t)&&C.push(o.get(wt)));break;case"set":u(t)&&C.push(o.get(bt))}ut();for(const t of C)t&&pt(t,2);dt()}const Et=e("__proto__,__v_isRef,__isVue"),Ot=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(v)),Tt=Dt();function Dt(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const g=de(this);for(let t=0,e=this.length;t<e;t++)xt(g,0,t+"");const i=g[e](...t);return-1===i||!1===i?g[e](...t.map(de)):i}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){lt(),ut();const g=de(this)[e].apply(this,t);return dt(),ct(),g}})),t}function Rt(t){const e=de(this);return xt(e,0,t),e.hasOwnProperty(t)}class St{constructor(t=!1,e=!1){this._isReadonly=t,this._shallow=e}get(t,e,g){const i=this._isReadonly,n=this._shallow;if("__v_isReactive"===e)return!i;if("__v_isReadonly"===e)return i;if("__v_isShallow"===e)return n;if("__v_raw"===e)return g===(i?n?Ce:oe:n?Ae:ne).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(g)?t:void 0;const A=c(t);if(!i){if(A&&l(Tt,e))return Reflect.get(Tt,e,g);if("hasOwnProperty"===e)return Rt}const o=Reflect.get(t,e,g);return(v(e)?Ot.has(e):Et(e))?o:(i||xt(t,0,e),n?o:me(o)?A&&E(e)?o:o.value:y(o)?i?re(o):Ie(o):o)}}class Nt extends St{constructor(t=!1){super(!1,t)}set(t,e,g,i){let n=t[e];if(!this._shallow){const e=le(n);if(ce(g)||le(g)||(n=de(n),g=de(g)),!c(t)&&me(n)&&!me(g))return!e&&(n.value=g,!0)}const A=c(t)&&E(e)?Number(e)<t.length:l(t,e),o=Reflect.set(t,e,g,i);return t===de(i)&&(A?B(g,n)&&kt(t,"set",e,g):kt(t,"add",e,g)),o}deleteProperty(t,e){const g=l(t,e),i=(t[e],Reflect.deleteProperty(t,e));return i&&g&&kt(t,"delete",e,void 0),i}has(t,e){const g=Reflect.has(t,e);return v(e)&&Ot.has(e)||xt(t,0,e),g}ownKeys(t){return xt(t,0,c(t)?"length":bt),Reflect.ownKeys(t)}}class Pt extends St{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const Mt=new Nt,Bt=new Pt,_t=new Nt(!0),zt=t=>t,Ft=t=>Reflect.getPrototypeOf(t);function jt(t,e,g=!1,i=!1){const n=de(t=t.__v_raw),A=de(e);g||(B(e,A)&&xt(n,0,e),xt(n,0,A));const{has:o}=Ft(n),C=i?zt:g?pe:fe;return o.call(n,e)?C(t.get(e)):o.call(n,A)?C(t.get(A)):void(t!==n&&t.get(e))}function Lt(t,e=!1){const g=this.__v_raw,i=de(g),n=de(t);return e||(B(t,n)&&xt(i,0,t),xt(i,0,n)),t===n?g.has(t):g.has(t)||g.has(n)}function Zt(t,e=!1){return t=t.__v_raw,!e&&xt(de(t),0,bt),Reflect.get(t,"size",t)}function Gt(t){t=de(t);const e=de(this);return Ft(e).has.call(e,t)||(e.add(t),kt(e,"add",t,t)),this}function Vt(t,e){e=de(e);const g=de(this),{has:i,get:n}=Ft(g);let A=i.call(g,t);A||(t=de(t),A=i.call(g,t));const o=n.call(g,t);return g.set(t,e),A?B(e,o)&&kt(g,"set",t,e):kt(g,"add",t,e),this}function Yt(t){const e=de(this),{has:g,get:i}=Ft(e);let n=g.call(e,t);n||(t=de(t),n=g.call(e,t)),i&&i.call(e,t);const A=e.delete(t);return n&&kt(e,"delete",t,void 0),A}function Wt(){const t=de(this),e=0!==t.size,g=t.clear();return e&&kt(t,"clear",void 0,void 0),g}function Ut(t,e){return function(g,i){const n=this,A=n.__v_raw,o=de(A),C=e?zt:t?pe:fe;return!t&&xt(o,0,bt),A.forEach(((t,e)=>g.call(i,C(t),C(e),n)))}}function Ht(t,e,g){return function(...i){const n=this.__v_raw,A=de(n),o=u(A),C="entries"===t||t===Symbol.iterator&&o,I="keys"===t&&o,r=n[t](...i),s=g?zt:e?pe:fe;return!e&&xt(A,0,I?wt:bt),{next(){const{value:t,done:e}=r.next();return e?{value:t,done:e}:{value:C?[s(t[0]),s(t[1])]:s(t),done:e}},[Symbol.iterator](){return this}}}}function Qt(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function Kt(){const t={get(t){return jt(this,t)},get size(){return Zt(this)},has:Lt,add:Gt,set:Vt,delete:Yt,clear:Wt,forEach:Ut(!1,!1)},e={get(t){return jt(this,t,!1,!0)},get size(){return Zt(this)},has:Lt,add:Gt,set:Vt,delete:Yt,clear:Wt,forEach:Ut(!1,!0)},g={get(t){return jt(this,t,!0)},get size(){return Zt(this,!0)},has(t){return Lt.call(this,t,!0)},add:Qt("add"),set:Qt("set"),delete:Qt("delete"),clear:Qt("clear"),forEach:Ut(!0,!1)},i={get(t){return jt(this,t,!0,!0)},get size(){return Zt(this,!0)},has(t){return Lt.call(this,t,!0)},add:Qt("add"),set:Qt("set"),delete:Qt("delete"),clear:Qt("clear"),forEach:Ut(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((n=>{t[n]=Ht(n,!1,!1),g[n]=Ht(n,!0,!1),e[n]=Ht(n,!1,!0),i[n]=Ht(n,!0,!0)})),[t,g,e,i]}const[Xt,Jt,qt,$t]=Kt();function te(t,e){const g=e?t?$t:qt:t?Jt:Xt;return(e,i,n)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get(l(g,i)&&i in e?g:e,i,n)}const ee={get:te(!1,!1)},ge={get:te(!1,!0)},ie={get:te(!0,!1)},ne=new WeakMap,Ae=new WeakMap,oe=new WeakMap,Ce=new WeakMap;function Ie(t){return le(t)?t:se(t,!1,Mt,ee,ne)}function re(t){return se(t,!0,Bt,ie,oe)}function se(t,e,g,i,n){if(!y(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const A=n.get(t);if(A)return A;const o=(C=t).__v_skip||!Object.isExtensible(C)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(x(C));var C;if(0===o)return t;const I=new Proxy(t,2===o?i:g);return n.set(t,I),I}function ae(t){return le(t)?ae(t.__v_raw):!(!t||!t.__v_isReactive)}function le(t){return!(!t||!t.__v_isReadonly)}function ce(t){return!(!t||!t.__v_isShallow)}function ue(t){return ae(t)||le(t)}function de(t){const e=t&&t.__v_raw;return e?de(e):t}function he(t){return z(t,"__v_skip",!0),t}const fe=t=>y(t)?Ie(t):t,pe=t=>y(t)?re(t):t;class ve{constructor(t,e,g,i){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new nt((()=>t(this._value)),(()=>ye(this,1)),(()=>this.dep&&vt(this.dep))),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=g}get value(){const t=de(this);return t._cacheable&&!t.effect.dirty||B(t._value,t._value=t.effect.run())&&ye(t,2),e=t,rt&&gt&&(e=de(e),ht(gt,e.dep||(e.dep=yt((()=>e.dep=void 0),e instanceof ve?e:void 0)))),t.effect._dirtyLevel>=1&&ye(t,1),t._value;var e}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ye(t,e=2,g){const i=(t=de(t)).dep;i&&pt(i,e)}function me(t){return!(!t||!0!==t.__v_isRef)}const be={get:(t,e,g)=>{return me(i=Reflect.get(t,e,g))?i.value:i;var i},set:(t,e,g,i)=>{const n=t[e];return me(n)&&!me(g)?(n.value=g,!0):Reflect.set(t,e,g,i)}};function we(t){return ae(t)?t:new Proxy(t,be)}function xe(t,e,g,i){let n;try{n=i?t(...i):t()}catch(t){Ee(t,e,g)}return n}function ke(t,e,g,i){if(f(t)){const n=xe(t,e,g,i);return n&&m(n)&&n.catch((t=>{Ee(t,e,g)})),n}const n=[];for(let A=0;A<t.length;A++)n.push(ke(t[A],e,g,i));return n}function Ee(t,e,g,i=!0){if(e&&e.vnode,e){let i=e.parent;const n=e.proxy,A=`https://vuejs.org/error-reference/#runtime-${g}`;for(;i;){const e=i.ec;if(e)for(let g=0;g<e.length;g++)if(!1===e[g](t,n,A))return;i=i.parent}const o=e.appContext.config.errorHandler;if(o)return void xe(o,null,10,[t,n,A])}!function(t,e,g,i=!0){console.error(t)}(t,0,0,i)}let Oe=!1,Te=!1;const De=[];let Re=0;const Se=[];let Ne=null,Pe=0;const Me=Promise.resolve();let Be=null;function _e(t){const e=Be||Me;return t?e.then(this?t.bind(this):t):e}function ze(t){De.length&&De.includes(t,Oe&&t.allowRecurse?Re+1:Re)||(null==t.id?De.push(t):De.splice(function(t){let e=Re+1,g=De.length;for(;e<g;){const i=e+g>>>1,n=De[i],A=Ze(n);A<t||A===t&&n.pre?e=i+1:g=i}return e}(t.id),0,t),Fe())}function Fe(){Oe||Te||(Te=!0,Be=Me.then(Ve))}function je(t,e,g=(Oe?Re+1:0)){for(;g<De.length;g++){const e=De[g];if(e&&e.pre){if(t&&e.id!==t.uid)continue;De.splice(g,1),g--,e()}}}function Le(t){if(Se.length){const t=[...new Set(Se)].sort(((t,e)=>Ze(t)-Ze(e)));if(Se.length=0,Ne)return void Ne.push(...t);for(Ne=t,Pe=0;Pe<Ne.length;Pe++)Ne[Pe]();Ne=null,Pe=0}}const Ze=t=>null==t.id?1/0:t.id,Ge=(t,e)=>{const g=Ze(t)-Ze(e);if(0===g){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return g};function Ve(t){Te=!1,Oe=!0,De.sort(Ge);try{for(Re=0;Re<De.length;Re++){const t=De[Re];t&&!1!==t.active&&xe(t,null,14)}}finally{Re=0,De.length=0,Le(),Oe=!1,Be=null,(De.length||Se.length)&&Ve(t)}}let Ye,We=[],Ue=!1;function He(t,...e){Ye?Ye.emit(t,...e):Ue||We.push({event:t,args:e})}function Qe(t,e){var g,i;Ye=t,Ye?(Ye.enabled=!0,We.forEach((({event:t,args:e})=>Ye.emit(t,...e))),We=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(g=window.navigator)?void 0:g.userAgent)?void 0:i.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{Qe(t,e)})),setTimeout((()=>{Ye||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ue=!0,We=[])}),3e3)):(Ue=!0,We=[])}const Ke=$e("component:added"),Xe=$e("component:updated"),Je=$e("component:removed"),qe=t=>{Ye&&"function"==typeof Ye.cleanupBuffer&&!Ye.cleanupBuffer(t)&&Je(t)};function $e(t){return e=>{He(t,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}function tg(t,e,...g){if(t.isUnmounted)return;const n=t.vnode.props||i;let A=g;const o=e.startsWith("update:"),C=o&&e.slice(7);if(C&&C in n){const t=`${"modelValue"===C?"model":C}Modifiers`,{number:e,trim:o}=n[t]||i;o&&(A=g.map((t=>p(t)?t.trim():t))),e&&(A=g.map(F))}let I;__VUE_PROD_DEVTOOLS__&&function(t,e,g){He("component:emit",t.appContext.app,t,e,g)}(t,e,A);let r=n[I=M(e)]||n[I=M(R(e))];!r&&o&&(r=n[I=M(N(e))]),r&&ke(r,t,6,A);const s=n[I+"Once"];if(s){if(t.emitted){if(t.emitted[I])return}else t.emitted={};t.emitted[I]=!0,ke(s,t,6,A)}}function eg(t,e,g=!1){const i=e.emitsCache,n=i.get(t);if(void 0!==n)return n;const A=t.emits;let o={},C=!1;if(__VUE_OPTIONS_API__&&!f(t)){const i=t=>{const g=eg(t,e,!0);g&&(C=!0,r(o,g))};!g&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return A||C?(c(A)?A.forEach((t=>o[t]=null)):r(o,A),y(t)&&i.set(t,o),o):(y(t)&&i.set(t,null),null)}function gg(t,e){return!(!t||!C(e))&&(e=e.slice(2).replace(/Once$/,""),l(t,e[0].toLowerCase()+e.slice(1))||l(t,N(e))||l(t,e))}let ig=null,ng=null;function Ag(t){const e=ig;return ig=t,ng=t&&t.type.__scopeId||null,e}function og(t){const{type:e,vnode:g,proxy:i,withProxy:n,props:A,propsOptions:[o],slots:C,attrs:r,emit:s,render:a,renderCache:l,data:c,setupState:u,ctx:d,inheritAttrs:h}=t;let f,p;const v=Ag(t);try{if(4&g.shapeFlag){const t=n||i,e=t;f=on(a.call(e,t,l,A,u,c,d)),p=r}else{const t=e;f=on(t.length>1?t(A,{attrs:r,slots:C,emit:s}):t(A,null)),p=e.props?r:Cg(r)}}catch(e){Gi.length=0,Ee(e,t,1),f=en(Li)}let y=f;if(p&&!1!==h){const t=Object.keys(p),{shapeFlag:e}=y;t.length&&7&e&&(o&&t.some(I)&&(p=Ig(p,o)),y=gn(y,p))}return g.dirs&&(y=gn(y),y.dirs=y.dirs?y.dirs.concat(g.dirs):g.dirs),g.transition&&(y.transition=g.transition),f=y,Ag(v),f}const Cg=t=>{let e;for(const g in t)("class"===g||"style"===g||C(g))&&((e||(e={}))[g]=t[g]);return e},Ig=(t,e)=>{const g={};for(const i in t)I(i)&&i.slice(9)in e||(g[i]=t[i]);return g};function rg(t,e,g){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let n=0;n<i.length;n++){const A=i[n];if(e[A]!==t[A]&&!gg(g,A))return!0}return!1}const sg=Symbol.for("v-ndc");const ag=Symbol.for("v-scx"),lg=()=>hi(ag),cg={};function ug(t,e,g){return dg(t,e,g)}function dg(t,e,{immediate:g,deep:n,flush:o,once:C,onTrack:I,onTrigger:r}=i){if(e&&C){const t=e;e=(...e)=>{t(...e),E()}}const a=ln,l=t=>!0===n?t:pg(t,!1===n?1:void 0);let u,d,h=!1,p=!1;if(me(t)?(u=()=>t.value,h=ce(t)):ae(t)?(u=()=>l(t),h=!0):c(t)?(p=!0,h=t.some((t=>ae(t)||ce(t))),u=()=>t.map((t=>me(t)?t.value:ae(t)?l(t):f(t)?xe(t,a,2):void 0))):u=f(t)?e?()=>xe(t,a,2):()=>(d&&d(),ke(t,a,3,[y])):A,e&&n){const t=u;u=()=>pg(t())}let v,y=t=>{d=x.onStop=()=>{xe(t,a,4),d=x.onStop=void 0}};if(mn){if(y=A,e?g&&ke(e,a,3,[u(),p?[]:void 0,y]):u(),"sync"!==o)return A;{const t=lg();v=t.__watcherHandles||(t.__watcherHandles=[])}}let m=p?new Array(t.length).fill(cg):cg;const b=()=>{if(x.active&&x.dirty)if(e){const t=x.run();(n||h||(p?t.some(((t,e)=>B(t,m[e]))):B(t,m)))&&(d&&d(),ke(e,a,3,[t,m===cg?void 0:p&&m[0]===cg?[]:m,y]),m=t)}else x.run()};let w;b.allowRecurse=!!e,"sync"===o?w=b:"post"===o?w=()=>Ni(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),w=()=>ze(b));const x=new nt(u,A,w),k=et,E=()=>{x.stop(),k&&s(k.effects,x)};return e?g?b():m=x.run():"post"===o?Ni(x.run.bind(x),a&&a.suspense):x.run(),v&&v.push(E),E}function hg(t,e,g){const i=this.proxy,n=p(t)?t.includes(".")?fg(i,t):()=>i[t]:t.bind(i,i);let A;f(e)?A=e:(A=e.handler,g=e);const o=hn(this),C=dg(n,A.bind(i),g);return o(),C}function fg(t,e){const g=e.split(".");return()=>{let e=t;for(let t=0;t<g.length&&e;t++)e=e[g[t]];return e}}function pg(t,e,g=0,i){if(!y(t)||t.__v_skip)return t;if(e&&e>0){if(g>=e)return t;g++}if((i=i||new Set).has(t))return t;if(i.add(t),me(t))pg(t.value,e,g,i);else if(c(t))for(let n=0;n<t.length;n++)pg(t[n],e,g,i);else if(d(t)||u(t))t.forEach((t=>{pg(t,e,g,i)}));else if(k(t))for(const n in t)pg(t[n],e,g,i);return t}function vg(t,e){if(null===ig)return t;const g=xn(ig)||ig.proxy,n=t.dirs||(t.dirs=[]);for(let t=0;t<e.length;t++){let[A,o,C,I=i]=e[t];A&&(f(A)&&(A={mounted:A,updated:A}),A.deep&&pg(o),n.push({dir:A,instance:g,value:o,oldValue:void 0,arg:C,modifiers:I}))}return t}function yg(t,e,g,i){const n=t.dirs,A=e&&e.dirs;for(let o=0;o<n.length;o++){const C=n[o];A&&(C.oldValue=A[o].value);let I=C.dir[i];I&&(lt(),ke(I,g,8,[t.el,C,t,e]),ct())}}const mg=Symbol("_leaveCb"),bg=Symbol("_enterCb");const wg=[Function,Array],xg={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:wg,onEnter:wg,onAfterEnter:wg,onEnterCancelled:wg,onBeforeLeave:wg,onLeave:wg,onAfterLeave:wg,onLeaveCancelled:wg,onBeforeAppear:wg,onAppear:wg,onAfterAppear:wg,onAppearCancelled:wg},kg={name:"BaseTransition",props:xg,setup(t,{slots:e}){const g=cn(),i=function(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zg((()=>{t.isMounted=!0})),Yg((()=>{t.isUnmounting=!0})),t}();let n;return()=>{const A=e.default&&Sg(e.default(),!0);if(!A||!A.length)return;let o=A[0];if(A.length>1){let t=!1;for(const e of A)if(e.type!==Li){o=e,t=!0;break}}const C=de(t),{mode:I}=C;if(i.isLeaving)return Tg(o);const r=Dg(o);if(!r)return Tg(o);const s=Og(r,C,i,g);Rg(r,s);const a=g.subTree,l=a&&Dg(a);let c=!1;const{getTransitionKey:u}=r.type;if(u){const t=u();void 0===n?n=t:t!==n&&(n=t,c=!0)}if(l&&l.type!==Li&&(!Xi(r,l)||c)){const t=Og(l,C,i,g);if(Rg(l,t),"out-in"===I)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,!1!==g.update.active&&(g.effect.dirty=!0,g.update())},Tg(o);"in-out"===I&&r.type!==Li&&(t.delayLeave=(t,e,g)=>{Eg(i,l)[String(l.key)]=l,t[mg]=()=>{e(),t[mg]=void 0,delete s.delayedLeave},s.delayedLeave=g})}return o}}};function Eg(t,e){const{leavingVNodes:g}=t;let i=g.get(e.type);return i||(i=Object.create(null),g.set(e.type,i)),i}function Og(t,e,g,i){const{appear:n,mode:A,persisted:o=!1,onBeforeEnter:C,onEnter:I,onAfterEnter:r,onEnterCancelled:s,onBeforeLeave:a,onLeave:l,onAfterLeave:u,onLeaveCancelled:d,onBeforeAppear:h,onAppear:f,onAfterAppear:p,onAppearCancelled:v}=e,y=String(t.key),m=Eg(g,t),b=(t,e)=>{t&&ke(t,i,9,e)},w=(t,e)=>{const g=e[1];b(t,e),c(t)?t.every((t=>t.length<=1))&&g():t.length<=1&&g()},x={mode:A,persisted:o,beforeEnter(e){let i=C;if(!g.isMounted){if(!n)return;i=h||C}e[mg]&&e[mg](!0);const A=m[y];A&&Xi(t,A)&&A.el[mg]&&A.el[mg](),b(i,[e])},enter(t){let e=I,i=r,A=s;if(!g.isMounted){if(!n)return;e=f||I,i=p||r,A=v||s}let o=!1;const C=t[bg]=e=>{o||(o=!0,b(e?A:i,[t]),x.delayedLeave&&x.delayedLeave(),t[bg]=void 0)};e?w(e,[t,C]):C()},leave(e,i){const n=String(t.key);if(e[bg]&&e[bg](!0),g.isUnmounting)return i();b(a,[e]);let A=!1;const o=e[mg]=g=>{A||(A=!0,i(),b(g?d:u,[e]),e[mg]=void 0,m[n]===t&&delete m[n])};m[n]=t,l?w(l,[e,o]):o()},clone:t=>Og(t,e,g,i)};return x}function Tg(t){if(Pg(t))return(t=gn(t)).children=null,t}function Dg(t){return Pg(t)?t.children?t.children[0]:void 0:t}function Rg(t,e){6&t.shapeFlag&&t.component?Rg(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Sg(t,e=!1,g){let i=[],n=0;for(let A=0;A<t.length;A++){let o=t[A];const C=null==g?o.key:String(g)+String(null!=o.key?o.key:A);o.type===Fi?(128&o.patchFlag&&n++,i=i.concat(Sg(o.children,e,C))):(e||o.type!==Li)&&i.push(null!=C?gn(o,{key:C}):o)}if(n>1)for(let t=0;t<i.length;t++)i[t].patchFlag=-2;return i}const Ng=t=>!!t.type.__asyncLoader,Pg=t=>t.type.__isKeepAlive;function Mg(t,e){_g(t,"a",e)}function Bg(t,e){_g(t,"da",e)}function _g(t,e,g=ln){const i=t.__wdc||(t.__wdc=()=>{let e=g;for(;e;){if(e.isDeactivated)return;e=e.parent}return t()});if(Fg(e,i,g),g){let t=g.parent;for(;t&&t.parent;)Pg(t.parent.vnode)&&zg(i,e,g,t),t=t.parent}}function zg(t,e,g,i){const n=Fg(e,t,i,!0);Wg((()=>{s(i[e],n)}),g)}function Fg(t,e,g=ln,i=!1){if(g){const n=g[t]||(g[t]=[]),A=e.__weh||(e.__weh=(...i)=>{if(g.isUnmounted)return;lt();const n=hn(g),A=ke(e,g,t,i);return n(),ct(),A});return i?n.unshift(A):n.push(A),A}}RegExp,RegExp;const jg=t=>(e,g=ln)=>(!mn||"sp"===t)&&Fg(t,((...t)=>e(...t)),g),Lg=jg("bm"),Zg=jg("m"),Gg=jg("bu"),Vg=jg("u"),Yg=jg("bum"),Wg=jg("um"),Ug=jg("sp"),Hg=jg("rtg"),Qg=jg("rtc");function Kg(t,e=ln){Fg("ec",t,e)}const Xg=t=>t?pn(t)?xn(t)||t.proxy:Xg(t.parent):null,Jg=r(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Xg(t.parent),$root:t=>Xg(t.root),$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?ni(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,ze(t.update)}),$nextTick:t=>t.n||(t.n=_e.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?hg.bind(t):A}),qg=(t,e)=>t!==i&&!t.__isScriptSetup&&l(t,e),$g={get({_:t},e){const{ctx:g,setupState:n,data:A,props:o,accessCache:C,type:I,appContext:r}=t;let s;if("$"!==e[0]){const I=C[e];if(void 0!==I)switch(I){case 1:return n[e];case 2:return A[e];case 4:return g[e];case 3:return o[e]}else{if(qg(n,e))return C[e]=1,n[e];if(A!==i&&l(A,e))return C[e]=2,A[e];if((s=t.propsOptions[0])&&l(s,e))return C[e]=3,o[e];if(g!==i&&l(g,e))return C[e]=4,g[e];__VUE_OPTIONS_API__&&!ei||(C[e]=0)}}const a=Jg[e];let c,u;return a?("$attrs"===e&&xt(t,0,e),a(t)):(c=I.__cssModules)&&(c=c[e])?c:g!==i&&l(g,e)?(C[e]=4,g[e]):(u=r.config.globalProperties,l(u,e)?u[e]:void 0)},set({_:t},e,g){const{data:n,setupState:A,ctx:o}=t;return qg(A,e)?(A[e]=g,!0):n!==i&&l(n,e)?(n[e]=g,!0):!(l(t.props,e)||"$"===e[0]&&e.slice(1)in t||(o[e]=g,0))},has({_:{data:t,setupState:e,accessCache:g,ctx:n,appContext:A,propsOptions:o}},C){let I;return!!g[C]||t!==i&&l(t,C)||qg(e,C)||(I=o[0])&&l(I,C)||l(n,C)||l(Jg,C)||l(A.config.globalProperties,C)},defineProperty(t,e,g){return null!=g.get?t._.accessCache[e]=0:l(g,"value")&&this.set(t,e,g.value,null),Reflect.defineProperty(t,e,g)}};function ti(t){return c(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let ei=!0;function gi(t,e,g){ke(c(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,g)}function ii(t,e,g,i){const n=i.includes(".")?fg(g,i):()=>g[i];if(p(t)){const g=e[t];f(g)&&ug(n,g)}else if(f(t))ug(n,t.bind(g));else if(y(t))if(c(t))t.forEach((t=>ii(t,e,g,i)));else{const i=f(t.handler)?t.handler.bind(g):e[t.handler];f(i)&&ug(n,i,t)}}function ni(t){const e=t.type,{mixins:g,extends:i}=e,{mixins:n,optionsCache:A,config:{optionMergeStrategies:o}}=t.appContext,C=A.get(e);let I;return C?I=C:n.length||g||i?(I={},n.length&&n.forEach((t=>Ai(I,t,o,!0))),Ai(I,e,o)):I=e,y(e)&&A.set(e,I),I}function Ai(t,e,g,i=!1){const{mixins:n,extends:A}=e;A&&Ai(t,A,g,!0),n&&n.forEach((e=>Ai(t,e,g,!0)));for(const n in e)if(i&&"expose"===n);else{const i=oi[n]||g&&g[n];t[n]=i?i(t[n],e[n]):e[n]}return t}const oi={data:Ci,props:ai,emits:ai,methods:si,computed:si,beforeCreate:ri,created:ri,beforeMount:ri,mounted:ri,beforeUpdate:ri,updated:ri,beforeDestroy:ri,beforeUnmount:ri,destroyed:ri,unmounted:ri,activated:ri,deactivated:ri,errorCaptured:ri,serverPrefetch:ri,components:si,directives:si,watch:function(t,e){if(!t)return e;if(!e)return t;const g=r(Object.create(null),t);for(const i in e)g[i]=ri(t[i],e[i]);return g},provide:Ci,inject:function(t,e){return si(Ii(t),Ii(e))}};function Ci(t,e){return e?t?function(){return r(f(t)?t.call(this,this):t,f(e)?e.call(this,this):e)}:e:t}function Ii(t){if(c(t)){const e={};for(let g=0;g<t.length;g++)e[t[g]]=t[g];return e}return t}function ri(t,e){return t?[...new Set([].concat(t,e))]:e}function si(t,e){return t?r(Object.create(null),t,e):e}function ai(t,e){return t?c(t)&&c(e)?[...new Set([...t,...e])]:r(Object.create(null),ti(t),ti(null!=e?e:{})):e}function li(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ci=0;function ui(t,e){return function(g,i=null){f(g)||(g=r({},g)),null==i||y(i)||(i=null);const n=li(),A=new WeakSet;let o=!1;const C=n.app={_uid:ci++,_component:g,_props:i,_container:null,_context:n,_instance:null,version:En,get config(){return n.config},set config(t){},use:(t,...e)=>(A.has(t)||(t&&f(t.install)?(A.add(t),t.install(C,...e)):f(t)&&(A.add(t),t(C,...e))),C),mixin:t=>(__VUE_OPTIONS_API__&&(n.mixins.includes(t)||n.mixins.push(t)),C),component:(t,e)=>e?(n.components[t]=e,C):n.components[t],directive:(t,e)=>e?(n.directives[t]=e,C):n.directives[t],mount(A,I,r){if(!o){const s=en(g,i);return s.appContext=n,!0===r?r="svg":!1===r&&(r=void 0),I&&e?e(s,A):t(s,A,r),o=!0,C._container=A,A.__vue_app__=C,__VUE_PROD_DEVTOOLS__&&(C._instance=s.component,function(t,e){He("app:init",t,e,{Fragment:Fi,Text:ji,Comment:Li,Static:Zi})}(C,En)),xn(s.component)||s.component.proxy}},unmount(){o&&(t(null,C._container),__VUE_PROD_DEVTOOLS__&&(C._instance=null,function(t){He("app:unmount",t)}(C)),delete C._container.__vue_app__)},provide:(t,e)=>(n.provides[t]=e,C),runWithContext(t){di=C;try{return t()}finally{di=null}}};return C}}let di=null;function hi(t,e,g=!1){const i=ln||ig;if(i||di){const n=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:di._context.provides;if(n&&t in n)return n[t];if(arguments.length>1)return g&&f(e)?e.call(i&&i.proxy):e}}function fi(t,e,g,n){const[A,o]=t.propsOptions;let C,I=!1;if(e)for(let i in e){if(O(i))continue;const r=e[i];let s;A&&l(A,s=R(i))?o&&o.includes(s)?(C||(C={}))[s]=r:g[s]=r:gg(t.emitsOptions,i)||i in n&&r===n[i]||(n[i]=r,I=!0)}if(o){const e=de(g),n=C||i;for(let i=0;i<o.length;i++){const C=o[i];g[C]=pi(A,e,C,n[C],t,!l(n,C))}}return I}function pi(t,e,g,i,n,A){const o=t[g];if(null!=o){const t=l(o,"default");if(t&&void 0===i){const t=o.default;if(o.type!==Function&&!o.skipFactory&&f(t)){const{propsDefaults:A}=n;if(g in A)i=A[g];else{const o=hn(n);i=A[g]=t.call(null,e),o()}}else i=t}o[0]&&(A&&!t?i=!1:!o[1]||""!==i&&i!==N(g)||(i=!0))}return i}function vi(t,e,g=!1){const A=e.propsCache,o=A.get(t);if(o)return o;const C=t.props,I={},s=[];let a=!1;if(__VUE_OPTIONS_API__&&!f(t)){const i=t=>{a=!0;const[g,i]=vi(t,e,!0);r(I,g),i&&s.push(...i)};!g&&e.mixins.length&&e.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!C&&!a)return y(t)&&A.set(t,n),n;if(c(C))for(let t=0;t<C.length;t++){const e=R(C[t]);yi(e)&&(I[e]=i)}else if(C)for(const t in C){const e=R(t);if(yi(e)){const g=C[t],i=I[e]=c(g)||f(g)?{type:g}:r({},g);if(i){const t=wi(Boolean,i.type),g=wi(String,i.type);i[0]=t>-1,i[1]=g<0||t<g,(t>-1||l(i,"default"))&&s.push(e)}}}const u=[I,s];return y(t)&&A.set(t,u),u}function yi(t){return"$"!==t[0]}function mi(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:null===t?"null":""}function bi(t,e){return mi(t)===mi(e)}function wi(t,e){return c(e)?e.findIndex((e=>bi(e,t))):f(e)&&bi(e,t)?0:-1}const xi=t=>"_"===t[0]||"$stable"===t,ki=t=>c(t)?t.map(on):[on(t)],Ei=(t,e,g)=>{if(e._n)return e;const i=function(t,e=ig,g){if(!e)return t;if(t._n)return t;const i=(...g)=>{i._d&&Ui(-1);const n=Ag(e);let A;try{A=t(...g)}finally{Ag(n),i._d&&Ui(1)}return __VUE_PROD_DEVTOOLS__&&Xe(e),A};return i._n=!0,i._c=!0,i._d=!0,i}(((...t)=>ki(e(...t))),g);return i._c=!1,i},Oi=(t,e,g)=>{const i=t._ctx;for(const g in t){if(xi(g))continue;const n=t[g];if(f(n))e[g]=Ei(0,n,i);else if(null!=n){const t=ki(n);e[g]=()=>t}}},Ti=(t,e)=>{const g=ki(e);t.slots.default=()=>g},Di=(t,e)=>{if(32&t.vnode.shapeFlag){const g=e._;g?(t.slots=de(e),z(e,"_",g)):Oi(e,t.slots={})}else t.slots={},e&&Ti(t,e);z(t.slots,Ji,1)},Ri=(t,e,g)=>{const{vnode:n,slots:A}=t;let o=!0,C=i;if(32&n.shapeFlag){const t=e._;t?g&&1===t?o=!1:(r(A,e),g||1!==t||delete A._):(o=!e.$stable,Oi(e,A)),C=e}else e&&(Ti(t,e),C={default:1});if(o)for(const t in A)xi(t)||null!=C[t]||delete A[t]};function Si(t,e,g,n,A=!1){if(c(t))return void t.forEach(((t,i)=>Si(t,e&&(c(e)?e[i]:e),g,n,A)));if(Ng(n)&&!A)return;const o=4&n.shapeFlag?xn(n.component)||n.component.proxy:n.el,C=A?null:o,{i:I,r}=t,a=e&&e.r,u=I.refs===i?I.refs={}:I.refs,d=I.setupState;if(null!=a&&a!==r&&(p(a)?(u[a]=null,l(d,a)&&(d[a]=null)):me(a)&&(a.value=null)),f(r))xe(r,I,12,[C,u]);else{const e=p(r),i=me(r),n=t.f;if(e||i){const I=()=>{if(n){const g=e?l(d,r)?d[r]:u[r]:r.value;A?c(g)&&s(g,o):c(g)?g.includes(o)||g.push(o):e?(u[r]=[o],l(d,r)&&(d[r]=u[r])):(r.value=[o],t.k&&(u[t.k]=r.value))}else e?(u[r]=C,l(d,r)&&(d[r]=C)):i&&(r.value=C,t.k&&(u[t.k]=C))};A||n?I():(I.id=-1,Ni(I,g))}}}const Ni=function(t,e){var g;e&&e.pendingBranch?c(t)?e.effects.push(...t):e.effects.push(t):(c(g=t)?Se.push(...g):Ne&&Ne.includes(g,g.allowRecurse?Pe+1:Pe)||Se.push(g),Fe())};function Pi(t,e){"boolean"!=typeof __VUE_OPTIONS_API__&&(Z().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Z().__VUE_PROD_DEVTOOLS__=!1),"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(Z().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);const g=Z();g.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Qe(g.__VUE_DEVTOOLS_GLOBAL_HOOK__,g);const{insert:o,remove:C,patchProp:I,createElement:r,createText:s,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:f=A,insertStaticContent:p}=t,v=(t,e,g,i=null,n=null,A=null,o=void 0,C=null,I=!!e.dynamicChildren)=>{if(t===e)return;t&&!Xi(t,e)&&(i=q(t),H(t,n,A,!0),t=null),-2===e.patchFlag&&(I=!1,e.dynamicChildren=null);const{type:r,ref:s,shapeFlag:a}=e;switch(r){case ji:y(t,e,g,i);break;case Li:b(t,e,g,i);break;case Zi:null==t&&w(e,g,i,o);break;case Fi:M(t,e,g,i,n,A,o,C,I);break;default:1&a?x(t,e,g,i,n,A,o,C,I):6&a?B(t,e,g,i,n,A,o,C,I):(64&a||128&a)&&r.process(t,e,g,i,n,A,o,C,I,et)}null!=s&&n&&Si(s,t&&t.ref,A,e||t,!e)},y=(t,e,g,i)=>{if(null==t)o(e.el=s(e.children),g,i);else{const g=e.el=t.el;e.children!==t.children&&c(g,e.children)}},b=(t,e,g,i)=>{null==t?o(e.el=a(e.children||""),g,i):e.el=t.el},w=(t,e,g,i)=>{[t.el,t.anchor]=p(t.children,e,g,i,t.el,t.anchor)},x=(t,e,g,i,n,A,o,C,I)=>{"svg"===e.type?o="svg":"math"===e.type&&(o="mathml"),null==t?k(e,g,i,n,A,o,C,I):D(t,e,n,A,o,C,I)},k=(t,e,g,i,n,A,C,s)=>{let a,l;const{props:c,shapeFlag:d,transition:h,dirs:f}=t;if(a=t.el=r(t.type,A,c&&c.is,c),8&d?u(a,t.children):16&d&&T(t.children,a,null,i,n,Mi(t,A),C,s),f&&yg(t,null,i,"created"),E(a,t,t.scopeId,C,i),c){for(const e in c)"value"===e||O(e)||I(a,e,null,c[e],A,t.children,i,n,J);"value"in c&&I(a,"value",null,c.value,A),(l=c.onVnodeBeforeMount)&&rn(l,i,t)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(a,"__vnode",{value:t,enumerable:!1}),Object.defineProperty(a,"__vueParentComponent",{value:i,enumerable:!1})),f&&yg(t,null,i,"beforeMount");const p=function(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}(n,h);p&&h.beforeEnter(a),o(a,e,g),((l=c&&c.onVnodeMounted)||p||f)&&Ni((()=>{l&&rn(l,i,t),p&&h.enter(a),f&&yg(t,null,i,"mounted")}),n)},E=(t,e,g,i,n)=>{if(g&&f(t,g),i)for(let e=0;e<i.length;e++)f(t,i[e]);if(n&&e===n.subTree){const e=n.vnode;E(t,e,e.scopeId,e.slotScopeIds,n.parent)}},T=(t,e,g,i,n,A,o,C,I=0)=>{for(let r=I;r<t.length;r++){const I=t[r]=C?Cn(t[r]):on(t[r]);v(null,I,e,g,i,n,A,o,C)}},D=(t,e,g,n,A,o,C)=>{const r=e.el=t.el;let{patchFlag:s,dynamicChildren:a,dirs:l}=e;s|=16&t.patchFlag;const c=t.props||i,d=e.props||i;let h;if(g&&Bi(g,!1),(h=d.onVnodeBeforeUpdate)&&rn(h,g,e,t),l&&yg(e,t,g,"beforeUpdate"),g&&Bi(g,!0),a?S(t.dynamicChildren,a,r,g,n,Mi(e,A),o):C||V(t,e,r,null,g,n,Mi(e,A),o,!1),s>0){if(16&s)P(r,e,c,d,g,n,A);else if(2&s&&c.class!==d.class&&I(r,"class",null,d.class,A),4&s&&I(r,"style",c.style,d.style,A),8&s){const i=e.dynamicProps;for(let e=0;e<i.length;e++){const o=i[e],C=c[o],s=d[o];s===C&&"value"!==o||I(r,o,C,s,A,t.children,g,n,J)}}1&s&&t.children!==e.children&&u(r,e.children)}else C||null!=a||P(r,e,c,d,g,n,A);((h=d.onVnodeUpdated)||l)&&Ni((()=>{h&&rn(h,g,e,t),l&&yg(e,t,g,"updated")}),n)},S=(t,e,g,i,n,A,o)=>{for(let C=0;C<e.length;C++){const I=t[C],r=e[C],s=I.el&&(I.type===Fi||!Xi(I,r)||70&I.shapeFlag)?d(I.el):g;v(I,r,s,null,i,n,A,o,!0)}},P=(t,e,g,n,A,o,C)=>{if(g!==n){if(g!==i)for(const i in g)O(i)||i in n||I(t,i,g[i],null,C,e.children,A,o,J);for(const i in n){if(O(i))continue;const r=n[i],s=g[i];r!==s&&"value"!==i&&I(t,i,s,r,C,e.children,A,o,J)}"value"in n&&I(t,"value",g.value,n.value,C)}},M=(t,e,g,i,n,A,C,I,r)=>{const a=e.el=t?t.el:s(""),l=e.anchor=t?t.anchor:s("");let{patchFlag:c,dynamicChildren:u,slotScopeIds:d}=e;d&&(I=I?I.concat(d):d),null==t?(o(a,g,i),o(l,g,i),T(e.children||[],g,l,n,A,C,I,r)):c>0&&64&c&&u&&t.dynamicChildren?(S(t.dynamicChildren,u,g,n,A,C,I),(null!=e.key||n&&e===n.subTree)&&_i(t,e,!0)):V(t,e,g,l,n,A,C,I,r)},B=(t,e,g,i,n,A,o,C,I)=>{e.slotScopeIds=C,null==t?512&e.shapeFlag?n.ctx.activate(e,g,i,o,I):F(e,g,i,n,A,o,I):j(t,e,I)},F=(t,e,g,n,A,o,C)=>{const I=t.component=function(t,e,g){const n=t.type,A=(e?e.appContext:t.appContext)||sn,o={uid:an++,vnode:t,type:n,parent:e,appContext:A,root:null,next:null,subTree:null,effect:null,update:null,scope:new it(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(A.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vi(n,A),emitsOptions:eg(n,A),emit:null,emitted:null,propsDefaults:i,inheritAttrs:n.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:g,suspenseId:g?g.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=tg.bind(null,o),t.ce&&t.ce(o),o}(t,n,A);if(Pg(t)&&(I.ctx.renderer=et),function(t,e=!1){e&&dn(e);const{props:g,children:i}=t.vnode,n=pn(t);(function(t,e,g,i=!1){const n={},A={};z(A,Ji,1),t.propsDefaults=Object.create(null),fi(t,e,n,A);for(const e in t.propsOptions[0])e in n||(n[e]=void 0);g?t.props=i?n:se(n,!1,_t,ge,Ae):t.type.props?t.props=n:t.props=A,t.attrs=A})(t,g,n,e),Di(t,i);const A=n?function(t,e){const g=t.type;t.accessCache=Object.create(null),t.proxy=he(new Proxy(t.ctx,$g));const{setup:i}=g;if(i){const g=t.setupContext=i.length>1?function(t){const e=e=>{t.exposed=e||{}};return{get attrs(){return function(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get:(e,g)=>(xt(t,0,"$attrs"),e[g])}))}(t)},slots:t.slots,emit:t.emit,expose:e}}(t):null,n=hn(t);lt();const A=xe(i,t,0,[t.props,g]);if(ct(),n(),m(A)){if(A.then(fn,fn),e)return A.then((g=>{bn(t,g,e)})).catch((e=>{Ee(e,t,0)}));t.asyncDep=A}else bn(t,A,e)}else wn(t,e)}(t,e):void 0;e&&dn(!1)}(I),I.asyncDep){if(A&&A.registerDep(I,L),!t.el){const t=I.subTree=en(Li);b(null,t,e,g)}}else L(I,t,e,g,A,o,C)},j=(t,e,g)=>{const i=e.component=t.component;if(function(t,e,g){const{props:i,children:n,component:A}=t,{props:o,children:C,patchFlag:I}=e,r=A.emitsOptions;if(e.dirs||e.transition)return!0;if(!(g&&I>=0))return!(!n&&!C||C&&C.$stable)||i!==o&&(i?!o||rg(i,o,r):!!o);if(1024&I)return!0;if(16&I)return i?rg(i,o,r):!!o;if(8&I){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const g=t[e];if(o[g]!==i[g]&&!gg(r,g))return!0}}return!1}(t,e,g)){if(i.asyncDep&&!i.asyncResolved)return void G(i,e,g);i.next=e,function(t){const e=De.indexOf(t);e>Re&&De.splice(e,1)}(i.update),i.effect.dirty=!0,i.update()}else e.el=t.el,i.vnode=e},L=(t,e,g,i,n,o,C)=>{const I=()=>{if(t.isMounted){let{next:e,bu:g,u:i,parent:A,vnode:r}=t;{const g=zi(t);if(g)return e&&(e.el=r.el,G(t,e,C)),void g.asyncDep.then((()=>{t.isUnmounted||I()}))}let s,a=e;Bi(t,!1),e?(e.el=r.el,G(t,e,C)):e=r,g&&_(g),(s=e.props&&e.props.onVnodeBeforeUpdate)&&rn(s,A,e,r),Bi(t,!0);const l=og(t),c=t.subTree;t.subTree=l,v(c,l,d(c.el),q(c),t,n,o),e.el=l.el,null===a&&function({vnode:t,parent:e},g){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i!==t)break;(t=e.vnode).el=g,e=e.parent}}(t,l.el),i&&Ni(i,n),(s=e.props&&e.props.onVnodeUpdated)&&Ni((()=>rn(s,A,e,r)),n),__VUE_PROD_DEVTOOLS__&&Xe(t)}else{let A;const{el:C,props:I}=e,{bm:r,m:s,parent:a}=t,l=Ng(e);if(Bi(t,!1),r&&_(r),!l&&(A=I&&I.onVnodeBeforeMount)&&rn(A,a,e),Bi(t,!0),C&&At){const g=()=>{t.subTree=og(t),At(C,t.subTree,t,n,null)};l?e.type.__asyncLoader().then((()=>!t.isUnmounted&&g())):g()}else{const A=t.subTree=og(t);v(null,A,g,i,t,n,o),e.el=A.el}if(s&&Ni(s,n),!l&&(A=I&&I.onVnodeMounted)){const t=e;Ni((()=>rn(A,a,t)),n)}(256&e.shapeFlag||a&&Ng(a.vnode)&&256&a.vnode.shapeFlag)&&t.a&&Ni(t.a,n),t.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Ke(t),e=g=i=null}},r=t.effect=new nt(I,A,(()=>ze(s)),t.scope),s=t.update=()=>{r.dirty&&r.run()};s.id=t.uid,Bi(t,!0),s()},G=(t,e,g)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,function(t,e,g,i){const{props:n,attrs:A,vnode:{patchFlag:o}}=t,C=de(n),[I]=t.propsOptions;let r=!1;if(!(i||o>0)||16&o){let i;fi(t,e,n,A)&&(r=!0);for(const A in C)e&&(l(e,A)||(i=N(A))!==A&&l(e,i))||(I?!g||void 0===g[A]&&void 0===g[i]||(n[A]=pi(I,C,A,void 0,t,!0)):delete n[A]);if(A!==C)for(const t in A)e&&l(e,t)||(delete A[t],r=!0)}else if(8&o){const g=t.vnode.dynamicProps;for(let i=0;i<g.length;i++){let o=g[i];if(gg(t.emitsOptions,o))continue;const s=e[o];if(I)if(l(A,o))s!==A[o]&&(A[o]=s,r=!0);else{const e=R(o);n[e]=pi(I,C,e,s,t,!1)}else s!==A[o]&&(A[o]=s,r=!0)}}r&&kt(t,"set","$attrs")}(t,e.props,i,g),Ri(t,e.children,g),lt(),je(t),ct()},V=(t,e,g,i,n,A,o,C,I=!1)=>{const r=t&&t.children,s=t?t.shapeFlag:0,a=e.children,{patchFlag:l,shapeFlag:c}=e;if(l>0){if(128&l)return void W(r,a,g,i,n,A,o,C,I);if(256&l)return void Y(r,a,g,i,n,A,o,C,I)}8&c?(16&s&&J(r,n,A),a!==r&&u(g,a)):16&s?16&c?W(r,a,g,i,n,A,o,C,I):J(r,n,A,!0):(8&s&&u(g,""),16&c&&T(a,g,i,n,A,o,C,I))},Y=(t,e,g,i,A,o,C,I,r)=>{e=e||n;const s=(t=t||n).length,a=e.length,l=Math.min(s,a);let c;for(c=0;c<l;c++){const i=e[c]=r?Cn(e[c]):on(e[c]);v(t[c],i,g,null,A,o,C,I,r)}s>a?J(t,A,o,!0,!1,l):T(e,g,i,A,o,C,I,r,l)},W=(t,e,g,i,A,o,C,I,r)=>{let s=0;const a=e.length;let l=t.length-1,c=a-1;for(;s<=l&&s<=c;){const i=t[s],n=e[s]=r?Cn(e[s]):on(e[s]);if(!Xi(i,n))break;v(i,n,g,null,A,o,C,I,r),s++}for(;s<=l&&s<=c;){const i=t[l],n=e[c]=r?Cn(e[c]):on(e[c]);if(!Xi(i,n))break;v(i,n,g,null,A,o,C,I,r),l--,c--}if(s>l){if(s<=c){const t=c+1,n=t<a?e[t].el:i;for(;s<=c;)v(null,e[s]=r?Cn(e[s]):on(e[s]),g,n,A,o,C,I,r),s++}}else if(s>c)for(;s<=l;)H(t[s],A,o,!0),s++;else{const u=s,d=s,h=new Map;for(s=d;s<=c;s++){const t=e[s]=r?Cn(e[s]):on(e[s]);null!=t.key&&h.set(t.key,s)}let f,p=0;const y=c-d+1;let m=!1,b=0;const w=new Array(y);for(s=0;s<y;s++)w[s]=0;for(s=u;s<=l;s++){const i=t[s];if(p>=y){H(i,A,o,!0);continue}let n;if(null!=i.key)n=h.get(i.key);else for(f=d;f<=c;f++)if(0===w[f-d]&&Xi(i,e[f])){n=f;break}void 0===n?H(i,A,o,!0):(w[n-d]=s+1,n>=b?b=n:m=!0,v(i,e[n],g,null,A,o,C,I,r),p++)}const x=m?function(t){const e=t.slice(),g=[0];let i,n,A,o,C;const I=t.length;for(i=0;i<I;i++){const I=t[i];if(0!==I){if(n=g[g.length-1],t[n]<I){e[i]=n,g.push(i);continue}for(A=0,o=g.length-1;A<o;)C=A+o>>1,t[g[C]]<I?A=C+1:o=C;I<t[g[A]]&&(A>0&&(e[i]=g[A-1]),g[A]=i)}}for(A=g.length,o=g[A-1];A-- >0;)g[A]=o,o=e[o];return g}(w):n;for(f=x.length-1,s=y-1;s>=0;s--){const t=d+s,n=e[t],l=t+1<a?e[t+1].el:i;0===w[s]?v(null,n,g,l,A,o,C,I,r):m&&(f<0||s!==x[f]?U(n,g,l,2):f--)}}},U=(t,e,g,i,n=null)=>{const{el:A,type:C,transition:I,children:r,shapeFlag:s}=t;if(6&s)U(t.component.subTree,e,g,i);else if(128&s)t.suspense.move(e,g,i);else if(64&s)C.move(t,e,g,et);else if(C!==Fi)if(C!==Zi)if(2!==i&&1&s&&I)if(0===i)I.beforeEnter(A),o(A,e,g),Ni((()=>I.enter(A)),n);else{const{leave:t,delayLeave:i,afterLeave:n}=I,C=()=>o(A,e,g),r=()=>{t(A,(()=>{C(),n&&n()}))};i?i(A,C,r):r()}else o(A,e,g);else(({el:t,anchor:e},g,i)=>{let n;for(;t&&t!==e;)n=h(t),o(t,g,i),t=n;o(e,g,i)})(t,e,g);else{o(A,e,g);for(let t=0;t<r.length;t++)U(r[t],e,g,i);o(t.anchor,e,g)}},H=(t,e,g,i=!1,n=!1)=>{const{type:A,props:o,ref:C,children:I,dynamicChildren:r,shapeFlag:s,patchFlag:a,dirs:l}=t;if(null!=C&&Si(C,null,g,t,!0),256&s)return void e.ctx.deactivate(t);const c=1&s&&l,u=!Ng(t);let d;if(u&&(d=o&&o.onVnodeBeforeUnmount)&&rn(d,e,t),6&s)X(t.component,g,i);else{if(128&s)return void t.suspense.unmount(g,i);c&&yg(t,null,e,"beforeUnmount"),64&s?t.type.remove(t,e,g,n,et,i):r&&(A!==Fi||a>0&&64&a)?J(r,e,g,!1,!0):(A===Fi&&384&a||!n&&16&s)&&J(I,e,g),i&&Q(t)}(u&&(d=o&&o.onVnodeUnmounted)||c)&&Ni((()=>{d&&rn(d,e,t),c&&yg(t,null,e,"unmounted")}),g)},Q=t=>{const{type:e,el:g,anchor:i,transition:n}=t;if(e===Fi)return void K(g,i);if(e===Zi)return void(({el:t,anchor:e})=>{let g;for(;t&&t!==e;)g=h(t),C(t),t=g;C(e)})(t);const A=()=>{C(g),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&t.shapeFlag&&n&&!n.persisted){const{leave:e,delayLeave:i}=n,o=()=>e(g,A);i?i(t.el,A,o):o()}else A()},K=(t,e)=>{let g;for(;t!==e;)g=h(t),C(t),t=g;C(e)},X=(t,e,g)=>{const{bum:i,scope:n,update:A,subTree:o,um:C}=t;i&&_(i),n.stop(),A&&(A.active=!1,H(o,t,e,g)),C&&Ni(C,e),Ni((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve()),__VUE_PROD_DEVTOOLS__&&qe(t)},J=(t,e,g,i=!1,n=!1,A=0)=>{for(let o=A;o<t.length;o++)H(t[o],e,g,i,n)},q=t=>6&t.shapeFlag?q(t.component.subTree):128&t.shapeFlag?t.suspense.next():h(t.anchor||t.el);let $=!1;const tt=(t,e,g)=>{null==t?e._vnode&&H(e._vnode,null,null,!0):v(e._vnode||null,t,e,null,null,null,g),$||($=!0,je(),Le(),$=!1),e._vnode=t},et={p:v,um:H,m:U,r:Q,mt:F,mc:T,pc:V,pbc:S,n:q,o:t};let gt,At;return e&&([gt,At]=e(et)),{render:tt,hydrate:gt,createApp:ui(tt,gt)}}function Mi({type:t,props:e},g){return"svg"===g&&"foreignObject"===t||"mathml"===g&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:g}function Bi({effect:t,update:e},g){t.allowRecurse=e.allowRecurse=g}function _i(t,e,g=!1){const i=t.children,n=e.children;if(c(i)&&c(n))for(let t=0;t<i.length;t++){const e=i[t];let A=n[t];1&A.shapeFlag&&!A.dynamicChildren&&((A.patchFlag<=0||32===A.patchFlag)&&(A=n[t]=Cn(n[t]),A.el=e.el),g||_i(e,A)),A.type===ji&&(A.el=e.el)}}function zi(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:zi(e)}const Fi=Symbol.for("v-fgt"),ji=Symbol.for("v-txt"),Li=Symbol.for("v-cmt"),Zi=Symbol.for("v-stc"),Gi=[];let Vi=null;function Yi(t=!1){Gi.push(Vi=t?null:[])}let Wi=1;function Ui(t){Wi+=t}function Hi(t){return t.dynamicChildren=Wi>0?Vi||n:null,Gi.pop(),Vi=Gi[Gi.length-1]||null,Wi>0&&Vi&&Vi.push(t),t}function Qi(t,e,g,i,n,A){return Hi(tn(t,e,g,i,n,A,!0))}function Ki(t){return!!t&&!0===t.__v_isVNode}function Xi(t,e){return t.type===e.type&&t.key===e.key}const Ji="__vInternal",qi=({key:t})=>null!=t?t:null,$i=({ref:t,ref_key:e,ref_for:g})=>("number"==typeof t&&(t=""+t),null!=t?p(t)||me(t)||f(t)?{i:ig,r:t,k:e,f:!!g}:t:null);function tn(t,e=null,g=null,i=0,n=null,A=(t===Fi?0:1),o=!1,C=!1){const I={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&qi(e),ref:e&&$i(e),scopeId:ng,slotScopeIds:null,children:g,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:A,patchFlag:i,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:ig};return C?(In(I,g),128&A&&t.normalize(I)):g&&(I.shapeFlag|=p(g)?8:16),Wi>0&&!o&&Vi&&(I.patchFlag>0||6&A)&&32!==I.patchFlag&&Vi.push(I),I}const en=function(t,e=null,g=null,i=0,n=null,A=!1){if(t&&t!==sg||(t=Li),Ki(t)){const i=gn(t,e,!0);return g&&In(i,g),Wi>0&&!A&&Vi&&(6&i.shapeFlag?Vi[Vi.indexOf(t)]=i:Vi.push(i)),i.patchFlag|=-2,i}if(o=t,f(o)&&"__vccOpts"in o&&(t=t.__vccOpts),e){e=function(t){return t?ue(t)||Ji in t?r({},t):t:null}(e);let{class:t,style:g}=e;t&&!p(t)&&(e.class=H(t)),y(g)&&(ue(g)&&!c(g)&&(g=r({},g)),e.style=G(g))}var o;return tn(t,e,g,i,n,p(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:y(t)?4:f(t)?2:0,A,!0)};function gn(t,e,g=!1){const{props:i,ref:n,patchFlag:A,children:o}=t,I=e?function(...t){const e={};for(let g=0;g<t.length;g++){const i=t[g];for(const t in i)if("class"===t)e.class!==i.class&&(e.class=H([e.class,i.class]));else if("style"===t)e.style=G([e.style,i.style]);else if(C(t)){const g=e[t],n=i[t];!n||g===n||c(g)&&g.includes(n)||(e[t]=g?[].concat(g,n):n)}else""!==t&&(e[t]=i[t])}return e}(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:I,key:I&&qi(I),ref:e&&e.ref?g&&n?c(n)?n.concat($i(e)):[n,$i(e)]:$i(e):n,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fi?-1===A?16:16|A:A,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&gn(t.ssContent),ssFallback:t.ssFallback&&gn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function nn(t=" ",e=0){return en(ji,null,t,e)}function An(t="",e=!1){return e?(Yi(),Hi(en(Li,null,t,g,i,!0))):en(Li,null,t);var g,i}function on(t){return null==t||"boolean"==typeof t?en(Li):c(t)?en(Fi,null,t.slice()):"object"==typeof t?Cn(t):en(ji,null,String(t))}function Cn(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:gn(t)}function In(t,e){let g=0;const{shapeFlag:i}=t;if(null==e)e=null;else if(c(e))g=16;else if("object"==typeof e){if(65&i){const g=e.default;return void(g&&(g._c&&(g._d=!1),In(t,g()),g._c&&(g._d=!0)))}{g=32;const i=e._;i||Ji in e?3===i&&ig&&(1===ig.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=ig}}else f(e)?(e={default:e,_ctx:ig},g=32):(e=String(e),64&i?(g=16,e=[nn(e)]):g=8);t.children=e,t.shapeFlag|=g}function rn(t,e,g,i=null){ke(t,e,7,[g,i])}const sn=li();let an=0;let ln=null;const cn=()=>ln||ig;let un,dn;{const t=Z(),e=(e,g)=>{let i;return(i=t[e])||(i=t[e]=[]),i.push(g),t=>{i.length>1?i.forEach((e=>e(t))):i[0](t)}};un=e("__VUE_INSTANCE_SETTERS__",(t=>ln=t)),dn=e("__VUE_SSR_SETTERS__",(t=>mn=t))}const hn=t=>{const e=ln;return un(t),t.scope.on(),()=>{t.scope.off(),un(e)}},fn=()=>{ln&&ln.scope.off(),un(null)};function pn(t){return 4&t.vnode.shapeFlag}let vn,yn,mn=!1;function bn(t,e,g){f(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:y(e)&&(__VUE_PROD_DEVTOOLS__&&(t.devtoolsRawSetupState=e),t.setupState=we(e)),wn(t,g)}function wn(t,e,g){const i=t.type;if(!t.render){if(!e&&vn&&!i.render){const e=i.template||ni(t).template;if(e){const{isCustomElement:g,compilerOptions:n}=t.appContext.config,{delimiters:A,compilerOptions:o}=i,C=r(r({isCustomElement:g,delimiters:A},n),o);i.render=vn(e,C)}}t.render=i.render||A,yn&&yn(t)}if(__VUE_OPTIONS_API__){const e=hn(t);lt();try{!function(t){const e=ni(t),g=t.proxy,i=t.ctx;ei=!1,e.beforeCreate&&gi(e.beforeCreate,t,"bc");const{data:n,computed:o,methods:C,watch:I,provide:r,inject:s,created:a,beforeMount:l,mounted:u,beforeUpdate:d,updated:h,activated:p,deactivated:v,beforeDestroy:m,beforeUnmount:b,destroyed:w,unmounted:x,render:k,renderTracked:E,renderTriggered:O,errorCaptured:T,serverPrefetch:D,expose:R,inheritAttrs:S,components:N,directives:P,filters:M}=e;if(s&&function(t,e,g=A){c(t)&&(t=Ii(t));for(const g in t){const i=t[g];let n;n=y(i)?"default"in i?hi(i.from||g,i.default,!0):hi(i.from||g):hi(i),me(n)?Object.defineProperty(e,g,{enumerable:!0,configurable:!0,get:()=>n.value,set:t=>n.value=t}):e[g]=n}}(s,i,null),C)for(const t in C){const e=C[t];f(e)&&(i[t]=e.bind(g))}if(n){const e=n.call(g,g);y(e)&&(t.data=Ie(e))}if(ei=!0,o)for(const t in o){const e=o[t],n=f(e)?e.bind(g,g):f(e.get)?e.get.bind(g,g):A,C=!f(e)&&f(e.set)?e.set.bind(g):A,I=kn({get:n,set:C});Object.defineProperty(i,t,{enumerable:!0,configurable:!0,get:()=>I.value,set:t=>I.value=t})}if(I)for(const t in I)ii(I[t],i,g,t);if(r){const t=f(r)?r.call(g):r;Reflect.ownKeys(t).forEach((e=>{!function(t,e){if(ln){let g=ln.provides;const i=ln.parent&&ln.parent.provides;i===g&&(g=ln.provides=Object.create(i)),g[t]=e}}(e,t[e])}))}function B(t,e){c(e)?e.forEach((e=>t(e.bind(g)))):e&&t(e.bind(g))}if(a&&gi(a,t,"c"),B(Lg,l),B(Zg,u),B(Gg,d),B(Vg,h),B(Mg,p),B(Bg,v),B(Kg,T),B(Qg,E),B(Hg,O),B(Yg,b),B(Wg,x),B(Ug,D),c(R))if(R.length){const e=t.exposed||(t.exposed={});R.forEach((t=>{Object.defineProperty(e,t,{get:()=>g[t],set:e=>g[t]=e})}))}else t.exposed||(t.exposed={});k&&t.render===A&&(t.render=k),null!=S&&(t.inheritAttrs=S),N&&(t.components=N),P&&(t.directives=P)}(t)}finally{ct(),e()}}}function xn(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(we(he(t.exposed)),{get:(e,g)=>g in e?e[g]:g in Jg?Jg[g](t):void 0,has:(t,e)=>e in t||e in Jg}))}const kn=(t,e)=>function(t,e,g=!1){let i,n;const o=f(t);return o?(i=t,n=A):(i=t.get,n=t.set),new ve(i,n,o||!n,g)}(t,0,mn),En="3.4.15",On="undefined"!=typeof document?document:null,Tn=On&&On.createElement("template"),Dn={insert:(t,e,g)=>{e.insertBefore(t,g||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,g,i)=>{const n="svg"===e?On.createElementNS("http://www.w3.org/2000/svg",t):"mathml"===e?On.createElementNS("http://www.w3.org/1998/Math/MathML",t):On.createElement(t,g?{is:g}:void 0);return"select"===t&&i&&null!=i.multiple&&n.setAttribute("multiple",i.multiple),n},createText:t=>On.createTextNode(t),createComment:t=>On.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>On.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,g,i,n,A){const o=g?g.previousSibling:e.lastChild;if(n&&(n===A||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),g),n!==A&&(n=n.nextSibling););else{Tn.innerHTML="svg"===i?`<svg>${t}</svg>`:"mathml"===i?`<math>${t}</math>`:t;const n=Tn.content;if("svg"===i||"mathml"===i){const t=n.firstChild;for(;t.firstChild;)n.appendChild(t.firstChild);n.removeChild(t)}e.insertBefore(n,g)}return[o?o.nextSibling:e.firstChild,g?g.previousSibling:e.lastChild]}},Rn="transition",Sn="animation",Nn=Symbol("_vtc"),Pn=(t,{slots:e})=>function(t,e,g){const i=arguments.length;return 2===i?y(e)&&!c(e)?Ki(e)?en(t,null,[e]):en(t,e):en(t,null,e):(i>3?g=Array.prototype.slice.call(arguments,2):3===i&&Ki(g)&&(g=[g]),en(t,e,g))}(kg,function(t){const e={};for(const g in t)g in Mn||(e[g]=t[g]);if(!1===t.css)return e;const{name:g="v",type:i,duration:n,enterFromClass:A=`${g}-enter-from`,enterActiveClass:o=`${g}-enter-active`,enterToClass:C=`${g}-enter-to`,appearFromClass:I=A,appearActiveClass:s=o,appearToClass:a=C,leaveFromClass:l=`${g}-leave-from`,leaveActiveClass:c=`${g}-leave-active`,leaveToClass:u=`${g}-leave-to`}=t,d=function(t){if(null==t)return null;if(y(t))return[zn(t.enter),zn(t.leave)];{const e=zn(t);return[e,e]}}(n),h=d&&d[0],f=d&&d[1],{onBeforeEnter:p,onEnter:v,onEnterCancelled:m,onLeave:b,onLeaveCancelled:w,onBeforeAppear:x=p,onAppear:k=v,onAppearCancelled:E=m}=e,O=(t,e,g)=>{jn(t,e?a:C),jn(t,e?s:o),g&&g()},T=(t,e)=>{t._isLeaving=!1,jn(t,l),jn(t,u),jn(t,c),e&&e()},D=t=>(e,g)=>{const n=t?k:v,o=()=>O(e,t,g);Bn(n,[e,o]),Ln((()=>{jn(e,t?I:A),Fn(e,t?a:C),_n(n)||Gn(e,i,h,o)}))};return r(e,{onBeforeEnter(t){Bn(p,[t]),Fn(t,A),Fn(t,o)},onBeforeAppear(t){Bn(x,[t]),Fn(t,I),Fn(t,s)},onEnter:D(!1),onAppear:D(!0),onLeave(t,e){t._isLeaving=!0;const g=()=>T(t,e);Fn(t,l),document.body.offsetHeight,Fn(t,c),Ln((()=>{t._isLeaving&&(jn(t,l),Fn(t,u),_n(b)||Gn(t,i,f,g))})),Bn(b,[t,g])},onEnterCancelled(t){O(t,!1),Bn(m,[t])},onAppearCancelled(t){O(t,!0),Bn(E,[t])},onLeaveCancelled(t){T(t),Bn(w,[t])}})}(t),e);Pn.displayName="Transition";const Mn={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Bn=(Pn.props=r({},xg,Mn),(t,e=[])=>{c(t)?t.forEach((t=>t(...e))):t&&t(...e)}),_n=t=>!!t&&(c(t)?t.some((t=>t.length>1)):t.length>1);function zn(t){return j(t)}function Fn(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t[Nn]||(t[Nn]=new Set)).add(e)}function jn(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const g=t[Nn];g&&(g.delete(e),g.size||(t[Nn]=void 0))}function Ln(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let Zn=0;function Gn(t,e,g,i){const n=t._endId=++Zn,A=()=>{n===t._endId&&i()};if(g)return setTimeout(A,g);const{type:o,timeout:C,propCount:I}=function(t,e){const g=window.getComputedStyle(t),i=t=>(g[t]||"").split(", "),n=i(`${Rn}Delay`),A=i(`${Rn}Duration`),o=Vn(n,A),C=i(`${Sn}Delay`),I=i(`${Sn}Duration`),r=Vn(C,I);let s=null,a=0,l=0;return e===Rn?o>0&&(s=Rn,a=o,l=A.length):e===Sn?r>0&&(s=Sn,a=r,l=I.length):(a=Math.max(o,r),s=a>0?o>r?Rn:Sn:null,l=s?s===Rn?A.length:I.length:0),{type:s,timeout:a,propCount:l,hasTransform:s===Rn&&/\b(transform|all)(,|$)/.test(i(`${Rn}Property`).toString())}}(t,e);if(!o)return i();const r=o+"end";let s=0;const a=()=>{t.removeEventListener(r,l),A()},l=e=>{e.target===t&&++s>=I&&a()};setTimeout((()=>{s<I&&a()}),C+1),t.addEventListener(r,l)}function Vn(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map(((e,g)=>Yn(e)+Yn(t[g]))))}function Yn(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}const Wn=Symbol("_vod"),Un={beforeMount(t,{value:e},{transition:g}){t[Wn]="none"===t.style.display?"":t.style.display,g&&e?g.beforeEnter(t):Hn(t,e)},mounted(t,{value:e},{transition:g}){g&&e&&g.enter(t)},updated(t,{value:e,oldValue:g},{transition:i}){!e!=!g&&(i?e?(i.beforeEnter(t),Hn(t,!0),i.enter(t)):i.leave(t,(()=>{Hn(t,!1)})):Hn(t,e))},beforeUnmount(t,{value:e}){Hn(t,e)}};function Hn(t,e){t.style.display=e?t[Wn]:"none"}const Qn=Symbol(""),Kn=/\s*!important$/;function Xn(t,e,g){if(c(g))g.forEach((g=>Xn(t,e,g)));else if(null==g&&(g=""),e.startsWith("--"))t.setProperty(e,g);else{const i=function(t,e){const g=qn[e];if(g)return g;let i=R(e);if("filter"!==i&&i in t)return qn[e]=i;i=P(i);for(let g=0;g<Jn.length;g++){const n=Jn[g]+i;if(n in t)return qn[e]=n}return e}(t,e);Kn.test(g)?t.setProperty(N(i),g.replace(Kn,""),"important"):t[i]=g}}const Jn=["Webkit","Moz","ms"],qn={},$n="http://www.w3.org/1999/xlink";function tA(t,e,g,i){t.addEventListener(e,g,i)}const eA=Symbol("_vei");const gA=/(?:Once|Passive|Capture)$/;let iA=0;const nA=Promise.resolve(),AA=()=>iA||(nA.then((()=>iA=0)),iA=Date.now()),oA=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123;"undefined"!=typeof HTMLElement&&HTMLElement,Symbol("_moveCb"),Symbol("_enterCb");const CA=t=>{const e=t.props["onUpdate:modelValue"]||!1;return c(e)?t=>_(e,t):e};function IA(t){t.target.composing=!0}function rA(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const sA=Symbol("_assign"),aA={created(t,{modifiers:{lazy:e,trim:g,number:i}},n){t[sA]=CA(n);const A=i||n.props&&"number"===n.props.type;tA(t,e?"change":"input",(e=>{if(e.target.composing)return;let i=t.value;g&&(i=i.trim()),A&&(i=F(i)),t[sA](i)})),g&&tA(t,"change",(()=>{t.value=t.value.trim()})),e||(tA(t,"compositionstart",IA),tA(t,"compositionend",rA),tA(t,"change",rA))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{lazy:g,trim:i,number:n}},A){if(t[sA]=CA(A),t.composing)return;const o=null==e?"":e;if((n||"number"===t.type?F(t.value):t.value)!==o){if(document.activeElement===t&&"range"!==t.type){if(g)return;if(i&&t.value.trim()===o)return}t.value=o}}},lA={deep:!0,created(t,e,g){t[sA]=CA(g),tA(t,"change",(()=>{const e=t._modelValue,g=function(t){return"_value"in t?t._value:t.value}(t),i=t.checked,n=t[sA];if(c(e)){const t=J(e,g),A=-1!==t;if(i&&!A)n(e.concat(g));else if(!i&&A){const g=[...e];g.splice(t,1),n(g)}}else if(d(e)){const t=new Set(e);i?t.add(g):t.delete(g),n(t)}else n(uA(t,i))}))},mounted:cA,beforeUpdate(t,e,g){t[sA]=CA(g),cA(t,e,g)}};function cA(t,{value:e,oldValue:g},i){t._modelValue=e,c(e)?t.checked=J(e,i.props.value)>-1:d(e)?t.checked=e.has(i.props.value):e!==g&&(t.checked=X(e,uA(t,!0)))}function uA(t,e){const g=e?"_trueValue":"_falseValue";return g in t?t[g]:e}const dA={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hA=(t,e)=>{const g=t._withKeys||(t._withKeys={}),i=e.join(".");return g[i]||(g[i]=g=>{if(!("key"in g))return;const i=N(g.key);return e.some((t=>t===i||dA[t]===i))?t(g):void 0})},fA=r({patchProp:(t,e,g,i,n,A,o,r,s)=>{const a="svg"===n;"class"===e?function(t,e,g){const i=t[Nn];i&&(e=(e?[e,...i]:[...i]).join(" ")),null==e?t.removeAttribute("class"):g?t.setAttribute("class",e):t.className=e}(t,i,a):"style"===e?function(t,e,g){const i=t.style,n=i.display,A=p(g);if(g&&!A){if(e&&!p(e))for(const t in e)null==g[t]&&Xn(i,t,"");for(const t in g)Xn(i,t,g[t])}else if(A){if(e!==g){const t=i[Qn];t&&(g+=";"+t),i.cssText=g}}else e&&t.removeAttribute("style");Wn in t&&(i.display=n)}(t,g,i):C(e)?I(e)||function(t,e,g,i,n=null){const A=t[eA]||(t[eA]={}),o=A[e];if(i&&o)o.value=i;else{const[g,C]=function(t){let e;if(gA.test(t)){let g;for(e={};g=t.match(gA);)t=t.slice(0,t.length-g[0].length),e[g[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):N(t.slice(2)),e]}(e);if(i){const o=A[e]=function(t,e){const g=t=>{if(t._vts){if(t._vts<=g.attached)return}else t._vts=Date.now();ke(function(t,e){if(c(e)){const g=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{g.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}(t,g.value),e,5,[t])};return g.value=t,g.attached=AA(),g}(i,n);tA(t,g,o,C)}else o&&(function(t,e,g,i){t.removeEventListener(e,g,i)}(t,g,o,C),A[e]=void 0)}}(t,e,0,i,o):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(t,e,g,i){if(i)return"innerHTML"===e||"textContent"===e||!!(e in t&&oA(e)&&f(g));if("spellcheck"===e||"draggable"===e||"translate"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!oA(e)||!p(g))&&e in t}(t,e,i,a))?function(t,e,g,i,n,A,o){if("innerHTML"===e||"textContent"===e)return i&&o(i,n,A),void(t[e]=null==g?"":g);const C=t.tagName;if("value"===e&&"PROGRESS"!==C&&!C.includes("-")){t._value=g;const i=null==g?"":g;return("OPTION"===C?t.getAttribute("value"):t.value)!==i&&(t.value=i),void(null==g&&t.removeAttribute(e))}let I=!1;if(""===g||null==g){const i=typeof t[e];"boolean"===i?g=K(g):null==g&&"string"===i?(g="",I=!0):"number"===i&&(g=0,I=!0)}try{t[e]=g}catch(t){}I&&t.removeAttribute(e)}(t,e,i,A,o,r,s):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),function(t,e,g,i,n){if(i&&e.startsWith("xlink:"))null==g?t.removeAttributeNS($n,e.slice(6,e.length)):t.setAttributeNS($n,e,g);else{const i=Q(e);null==g||i&&!K(g)?t.removeAttribute(e):t.setAttribute(e,i?"":g)}}(t,e,i,a))}},Dn);let pA;var vA={class:"row"},yA={class:"d-flex",style:{"align-items":"center"}},mA=tn("h4",{class:"text-light py-3 m-0 me-2"},"VLAN Traceroute",-1),bA={class:"d-flex py-2 text-light",style:{"vertical-align":"middle"}},wA={key:0,class:"d-flex"},xA=tn("div",{class:"spinner-border me-2",role:"status"},null,-1),kA={style:{display:"flex","align-items":"center"}},EA=tn("div",{class:"spinner-border me-2",role:"status"},null,-1),OA=[tn("path",{"fill-rule":"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"},null,-1),tn("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"},null,-1)],TA=tn("div",null,[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"white",class:"bi bi-x-circle",viewBox:"0 0 16 16"},[tn("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),tn("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})])],-1),DA={class:"my-3 d-flex align-items-center"},RA=[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"currentColor",class:"bi bi-bezier2",viewBox:"0 0 16 16"},[tn("path",{"fill-rule":"evenodd",d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h1A1.5 1.5 0 0 1 5 2.5h4.134a1 1 0 1 1 0 1h-2.01c.18.18.34.381.484.605.638.992.892 2.354.892 3.895 0 1.993.257 3.092.713 3.7.356.476.895.721 1.787.784A1.5 1.5 0 0 1 12.5 11h1a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-1.5-1.5H6.866a1 1 0 1 1 0-1h1.711a2.839 2.839 0 0 1-.165-.2C7.743 11.407 7.5 10.007 7.5 8c0-1.46-.246-2.597-.733-3.355-.39-.605-.952-1-1.767-1.112A1.5 1.5 0 0 1 3.5 5h-1A1.5 1.5 0 0 1 1 3.5v-1zM2.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zm10 10a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1z"})],-1)],SA={key:1,class:"text-light fs-4"},NA=tn("div",{class:"col-md-auto"},[tn("h3",null,[tn("span",{class:"text-light badge bg-secondary",id:"vlan_desc"})])],-1),PA={class:"form-check form-switch"},MA=tn("label",{class:"form-check-label text-light",for:"only-admin-up"}," Указывать выключенные порты ",-1),BA={class:"form-check form-switch py-1"},_A=tn("label",{class:"form-check-label text-light",for:"empty-ports"}," Показывать пустые порты ",-1),zA={class:"form-check form-switch py-1"},FA=tn("label",{class:"form-check-label text-light",for:"double-check-vlan"}," Двухстороннее соответствие VLAN на соседних портах ",-1),jA={class:"py-1 text-center d-flex align-items-center"},LA={style:{width:"130px"},class:"me-2"},ZA={class:"input-group py-3"},GA=[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-dash-lg",viewBox:"0 0 16 16"},[tn("path",{"fill-rule":"evenodd",d:"M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z"})],-1)],VA=["value"],YA=[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-plus-lg",viewBox:"0 0 16 16"},[tn("path",{"fill-rule":"evenodd",d:"M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z"})],-1)],WA=tn("div",{class:"form-label text-light col-3 noselect"}," Минимальное количество узлов в одном графе ",-1),UA={class:"row"},HA={class:"d-flex",style:{"align-items":"center"}},QA=tn("h4",{class:"text-light py-3 m-0 me-2"},"MAC Traceroute",-1),KA={class:"d-flex py-2 text-light",style:{"vertical-align":"middle"}},XA={key:0,class:"d-flex"},JA=tn("div",{class:"spinner-border me-2",role:"status"},null,-1),qA={style:{display:"flex","align-items":"center"}},$A=tn("div",{class:"spinner-border me-2",role:"status"},null,-1),to=[tn("path",{"fill-rule":"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"},null,-1),tn("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"},null,-1)],eo=tn("div",null,[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"white",class:"bi bi-x-circle",viewBox:"0 0 16 16"},[tn("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),tn("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})])],-1),go={class:"my-3 d-flex align-items-center"},io=[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"currentColor",class:"bi bi-bezier2",viewBox:"0 0 16 16"},[tn("path",{"fill-rule":"evenodd",d:"M1 2.5A1.5 1.5 0 0 1 2.5 1h1A1.5 1.5 0 0 1 5 2.5h4.134a1 1 0 1 1 0 1h-2.01c.18.18.34.381.484.605.638.992.892 2.354.892 3.895 0 1.993.257 3.092.713 3.7.356.476.895.721 1.787.784A1.5 1.5 0 0 1 12.5 11h1a1.5 1.5 0 0 1 1.5 1.5v1a1.5 1.5 0 0 1-1.5 1.5h-1a1.5 1.5 0 0 1-1.5-1.5H6.866a1 1 0 1 1 0-1h1.711a2.839 2.839 0 0 1-.165-.2C7.743 11.407 7.5 10.007 7.5 8c0-1.46-.246-2.597-.733-3.355-.39-.605-.952-1-1.767-1.112A1.5 1.5 0 0 1 3.5 5h-1A1.5 1.5 0 0 1 1 3.5v-1zM2.5 2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1zm10 10a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1z"})],-1)],no=tn("div",{id:"fullScreen",class:"fullScreenButton",title:"На весь экран"},[tn("button",{id:"fullScreenButton",type:"button",class:"btn btn-secondary"},[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"24",fill:"currentColor",class:"bi bi-arrows-angle-expand",viewBox:"0 0 16 16"},[tn("path",{"fill-rule":"evenodd",d:"M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707z"})])])],-1),Ao=tn("div",{id:"collapseScreen",title:"Свернуть",style:{"z-index":"10",display:"none",right:"0",top:"0",position:"absolute",margin:"10px 10px 0 0"}},[tn("button",{id:"collapseScreenButton",type:"button",class:"btn btn-secondary"},[tn("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"24",fill:"currentColor",class:"bi bi-arrows-angle-contract",viewBox:"0 0 16 16"},[tn("path",{"fill-rule":"evenodd",d:"M.172 15.828a.5.5 0 0 0 .707 0l4.096-4.096V14.5a.5.5 0 1 0 1 0v-3.975a.5.5 0 0 0-.5-.5H1.5a.5.5 0 0 0 0 1h2.768L.172 15.121a.5.5 0 0 0 0 .707zM15.828.172a.5.5 0 0 0-.707 0l-4.096 4.096V1.5a.5.5 0 1 0-1 0v3.975a.5.5 0 0 0 .5.5H14.5a.5.5 0 0 0 0-1h-2.768L15.828.879a.5.5 0 0 0 0-.707z"})])])],-1),oo={key:0},Co=[tn("div",{style:{"text-align":"center"}},[tn("div",{class:"me-2 spinner-border text-primary",role:"status",style:{"text-align":"center",height:"200px",width:"200px"}})],-1)],Io={style:{"background-color":"#222222",height:"100%"}},ro={id:"vlan-network"},so={id:"mac-network"};function ao(t,e){return function(){return t.apply(e,arguments)}}const{toString:lo}=Object.prototype,{getPrototypeOf:co}=Object,uo=(ho=Object.create(null),t=>{const e=lo.call(t);return ho[e]||(ho[e]=e.slice(8,-1).toLowerCase())});var ho;const fo=t=>(t=t.toLowerCase(),e=>uo(e)===t),po=t=>e=>typeof e===t,{isArray:vo}=Array,yo=po("undefined"),mo=fo("ArrayBuffer"),bo=po("string"),wo=po("function"),xo=po("number"),ko=t=>null!==t&&"object"==typeof t,Eo=t=>{if("object"!==uo(t))return!1;const e=co(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Oo=fo("Date"),To=fo("File"),Do=fo("Blob"),Ro=fo("FileList"),So=fo("URLSearchParams");function No(t,e,{allOwnKeys:g=!1}={}){if(null==t)return;let i,n;if("object"!=typeof t&&(t=[t]),vo(t))for(i=0,n=t.length;i<n;i++)e.call(null,t[i],i,t);else{const n=g?Object.getOwnPropertyNames(t):Object.keys(t),A=n.length;let o;for(i=0;i<A;i++)o=n[i],e.call(null,t[o],o,t)}}function Po(t,e){e=e.toLowerCase();const g=Object.keys(t);let i,n=g.length;for(;n-- >0;)if(i=g[n],e===i.toLowerCase())return i;return null}const Mo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Bo=t=>!yo(t)&&t!==Mo,_o=(zo="undefined"!=typeof Uint8Array&&co(Uint8Array),t=>zo&&t instanceof zo);var zo;const Fo=fo("HTMLFormElement"),jo=(({hasOwnProperty:t})=>(e,g)=>t.call(e,g))(Object.prototype),Lo=fo("RegExp"),Zo=(t,e)=>{const g=Object.getOwnPropertyDescriptors(t),i={};No(g,((g,n)=>{let A;!1!==(A=e(g,n,t))&&(i[n]=A||g)})),Object.defineProperties(t,i)},Go="abcdefghijklmnopqrstuvwxyz",Vo="0123456789",Yo={DIGIT:Vo,ALPHA:Go,ALPHA_DIGIT:Go+Go.toUpperCase()+Vo},Wo=fo("AsyncFunction"),Uo={isArray:vo,isArrayBuffer:mo,isBuffer:function(t){return null!==t&&!yo(t)&&null!==t.constructor&&!yo(t.constructor)&&wo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||wo(t.append)&&("formdata"===(e=uo(t))||"object"===e&&wo(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&mo(t.buffer),e},isString:bo,isNumber:xo,isBoolean:t=>!0===t||!1===t,isObject:ko,isPlainObject:Eo,isUndefined:yo,isDate:Oo,isFile:To,isBlob:Do,isRegExp:Lo,isFunction:wo,isStream:t=>ko(t)&&wo(t.pipe),isURLSearchParams:So,isTypedArray:_o,isFileList:Ro,forEach:No,merge:function t(){const{caseless:e}=Bo(this)&&this||{},g={},i=(i,n)=>{const A=e&&Po(g,n)||n;Eo(g[A])&&Eo(i)?g[A]=t(g[A],i):Eo(i)?g[A]=t({},i):vo(i)?g[A]=i.slice():g[A]=i};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&No(arguments[t],i);return g},extend:(t,e,g,{allOwnKeys:i}={})=>(No(e,((e,i)=>{g&&wo(e)?t[i]=ao(e,g):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,g,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),g&&Object.assign(t.prototype,g)},toFlatObject:(t,e,g,i)=>{let n,A,o;const C={};if(e=e||{},null==t)return e;do{for(n=Object.getOwnPropertyNames(t),A=n.length;A-- >0;)o=n[A],i&&!i(o,t,e)||C[o]||(e[o]=t[o],C[o]=!0);t=!1!==g&&co(t)}while(t&&(!g||g(t,e))&&t!==Object.prototype);return e},kindOf:uo,kindOfTest:fo,endsWith:(t,e,g)=>{t=String(t),(void 0===g||g>t.length)&&(g=t.length),g-=e.length;const i=t.indexOf(e,g);return-1!==i&&i===g},toArray:t=>{if(!t)return null;if(vo(t))return t;let e=t.length;if(!xo(e))return null;const g=new Array(e);for(;e-- >0;)g[e]=t[e];return g},forEachEntry:(t,e)=>{const g=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=g.next())&&!i.done;){const g=i.value;e.call(t,g[0],g[1])}},matchAll:(t,e)=>{let g;const i=[];for(;null!==(g=t.exec(e));)i.push(g);return i},isHTMLForm:Fo,hasOwnProperty:jo,hasOwnProp:jo,reduceDescriptors:Zo,freezeMethods:t=>{Zo(t,((e,g)=>{if(wo(t)&&-1!==["arguments","caller","callee"].indexOf(g))return!1;const i=t[g];wo(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+g+"'")}))}))},toObjectSet:(t,e)=>{const g={},i=t=>{t.forEach((t=>{g[t]=!0}))};return vo(t)?i(t):i(String(t).split(e)),g},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,g){return e.toUpperCase()+g})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Po,global:Mo,isContextDefined:Bo,ALPHABET:Yo,generateString:(t=16,e=Yo.ALPHA_DIGIT)=>{let g="";const{length:i}=e;for(;t--;)g+=e[Math.random()*i|0];return g},isSpecCompliantForm:function(t){return!!(t&&wo(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),g=(t,i)=>{if(ko(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const n=vo(t)?[]:{};return No(t,((t,e)=>{const A=g(t,i+1);!yo(A)&&(n[e]=A)})),e[i]=void 0,n}}return t};return g(t,0)},isAsyncFn:Wo,isThenable:t=>t&&(ko(t)||wo(t))&&wo(t.then)&&wo(t.catch)};function Ho(t,e,g,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),g&&(this.config=g),i&&(this.request=i),n&&(this.response=n)}Uo.inherits(Ho,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Uo.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Qo=Ho.prototype,Ko={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Ko[t]={value:t}})),Object.defineProperties(Ho,Ko),Object.defineProperty(Qo,"isAxiosError",{value:!0}),Ho.from=(t,e,g,i,n,A)=>{const o=Object.create(Qo);return Uo.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Ho.call(o,t.message,e,g,i,n),o.cause=t,o.name=t.name,A&&Object.assign(o,A),o};const Xo=Ho;function Jo(t){return Uo.isPlainObject(t)||Uo.isArray(t)}function qo(t){return Uo.endsWith(t,"[]")?t.slice(0,-2):t}function $o(t,e,g){return t?t.concat(e).map((function(t,e){return t=qo(t),!g&&e?"["+t+"]":t})).join(g?".":""):e}const tC=Uo.toFlatObject(Uo,{},null,(function(t){return/^is[A-Z]/.test(t)})),eC=function(t,e,g){if(!Uo.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(g=Uo.toFlatObject(g,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Uo.isUndefined(e[t])}))).metaTokens,n=g.visitor||r,A=g.dots,o=g.indexes,C=(g.Blob||"undefined"!=typeof Blob&&Blob)&&Uo.isSpecCompliantForm(e);if(!Uo.isFunction(n))throw new TypeError("visitor must be a function");function I(t){if(null===t)return"";if(Uo.isDate(t))return t.toISOString();if(!C&&Uo.isBlob(t))throw new Xo("Blob is not supported. Use a Buffer instead.");return Uo.isArrayBuffer(t)||Uo.isTypedArray(t)?C&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function r(t,g,n){let C=t;if(t&&!n&&"object"==typeof t)if(Uo.endsWith(g,"{}"))g=i?g:g.slice(0,-2),t=JSON.stringify(t);else if(Uo.isArray(t)&&function(t){return Uo.isArray(t)&&!t.some(Jo)}(t)||(Uo.isFileList(t)||Uo.endsWith(g,"[]"))&&(C=Uo.toArray(t)))return g=qo(g),C.forEach((function(t,i){!Uo.isUndefined(t)&&null!==t&&e.append(!0===o?$o([g],i,A):null===o?g:g+"[]",I(t))})),!1;return!!Jo(t)||(e.append($o(n,g,A),I(t)),!1)}const s=[],a=Object.assign(tC,{defaultVisitor:r,convertValue:I,isVisitable:Jo});if(!Uo.isObject(t))throw new TypeError("data must be an object");return function t(g,i){if(!Uo.isUndefined(g)){if(-1!==s.indexOf(g))throw Error("Circular reference detected in "+i.join("."));s.push(g),Uo.forEach(g,(function(g,A){!0===(!(Uo.isUndefined(g)||null===g)&&n.call(e,g,Uo.isString(A)?A.trim():A,i,a))&&t(g,i?i.concat(A):[A])})),s.pop()}}(t),e};function gC(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function iC(t,e){this._pairs=[],t&&eC(t,this,e)}const nC=iC.prototype;nC.append=function(t,e){this._pairs.push([t,e])},nC.toString=function(t){const e=t?function(e){return t.call(this,e,gC)}:gC;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const AC=iC;function oC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function CC(t,e,g){if(!e)return t;const i=g&&g.encode||oC,n=g&&g.serialize;let A;if(A=n?n(e,g):Uo.isURLSearchParams(e)?e.toString():new AC(e,g).toString(i),A){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+A}return t}const IC=class{constructor(){this.handlers=[]}use(t,e,g){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!g&&g.synchronous,runWhen:g?g.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Uo.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},rC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sC={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:AC,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},aC="undefined"!=typeof window&&"undefined"!=typeof document,lC=(cC="undefined"!=typeof navigator&&navigator.product,aC&&["ReactNative","NativeScript","NS"].indexOf(cC)<0);var cC;const uC="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dC={...t,...sC},hC=function(t){function e(t,g,i,n){let A=t[n++];if("__proto__"===A)return!0;const o=Number.isFinite(+A),C=n>=t.length;return A=!A&&Uo.isArray(i)?i.length:A,C?(Uo.hasOwnProp(i,A)?i[A]=[i[A],g]:i[A]=g,!o):(i[A]&&Uo.isObject(i[A])||(i[A]=[]),e(t,g,i[A],n)&&Uo.isArray(i[A])&&(i[A]=function(t){const e={},g=Object.keys(t);let i;const n=g.length;let A;for(i=0;i<n;i++)A=g[i],e[A]=t[A];return e}(i[A])),!o)}if(Uo.isFormData(t)&&Uo.isFunction(t.entries)){const g={};return Uo.forEachEntry(t,((t,i)=>{e(function(t){return Uo.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,g,0)})),g}return null},fC={transitional:rC,adapter:["xhr","http"],transformRequest:[function(t,e){const g=e.getContentType()||"",i=g.indexOf("application/json")>-1,n=Uo.isObject(t);if(n&&Uo.isHTMLForm(t)&&(t=new FormData(t)),Uo.isFormData(t))return i?JSON.stringify(hC(t)):t;if(Uo.isArrayBuffer(t)||Uo.isBuffer(t)||Uo.isStream(t)||Uo.isFile(t)||Uo.isBlob(t))return t;if(Uo.isArrayBufferView(t))return t.buffer;if(Uo.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let A;if(n){if(g.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return eC(t,new dC.classes.URLSearchParams,Object.assign({visitor:function(t,e,g,i){return dC.isNode&&Uo.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((A=Uo.isFileList(t))||g.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return eC(A?{"files[]":t}:t,e&&new e,this.formSerializer)}}return n||i?(e.setContentType("application/json",!1),function(t,e,g){if(Uo.isString(t))try{return(0,JSON.parse)(t),Uo.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||fC.transitional,g=e&&e.forcedJSONParsing,i="json"===this.responseType;if(t&&Uo.isString(t)&&(g&&!this.responseType||i)){const g=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(g){if("SyntaxError"===t.name)throw Xo.from(t,Xo.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dC.classes.FormData,Blob:dC.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Uo.forEach(["delete","get","head","post","put","patch"],(t=>{fC.headers[t]={}}));const pC=fC,vC=Uo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yC=Symbol("internals");function mC(t){return t&&String(t).trim().toLowerCase()}function bC(t){return!1===t||null==t?t:Uo.isArray(t)?t.map(bC):String(t)}function wC(t,e,g,i,n){return Uo.isFunction(i)?i.call(this,e,g):(n&&(e=g),Uo.isString(e)?Uo.isString(i)?-1!==e.indexOf(i):Uo.isRegExp(i)?i.test(e):void 0:void 0)}class xC{constructor(t){t&&this.set(t)}set(t,e,g){const i=this;function n(t,e,g){const n=mC(e);if(!n)throw new Error("header name must be a non-empty string");const A=Uo.findKey(i,n);(!A||void 0===i[A]||!0===g||void 0===g&&!1!==i[A])&&(i[A||e]=bC(t))}const A=(t,e)=>Uo.forEach(t,((t,g)=>n(t,g,e)));return Uo.isPlainObject(t)||t instanceof this.constructor?A(t,e):Uo.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?A((t=>{const e={};let g,i,n;return t&&t.split("\n").forEach((function(t){n=t.indexOf(":"),g=t.substring(0,n).trim().toLowerCase(),i=t.substring(n+1).trim(),!g||e[g]&&vC[g]||("set-cookie"===g?e[g]?e[g].push(i):e[g]=[i]:e[g]=e[g]?e[g]+", "+i:i)})),e})(t),e):null!=t&&n(e,t,g),this}get(t,e){if(t=mC(t)){const g=Uo.findKey(this,t);if(g){const t=this[g];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),g=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=g.exec(t);)e[i[1]]=i[2];return e}(t);if(Uo.isFunction(e))return e.call(this,t,g);if(Uo.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=mC(t)){const g=Uo.findKey(this,t);return!(!g||void 0===this[g]||e&&!wC(0,this[g],g,e))}return!1}delete(t,e){const g=this;let i=!1;function n(t){if(t=mC(t)){const n=Uo.findKey(g,t);!n||e&&!wC(0,g[n],n,e)||(delete g[n],i=!0)}}return Uo.isArray(t)?t.forEach(n):n(t),i}clear(t){const e=Object.keys(this);let g=e.length,i=!1;for(;g--;){const n=e[g];t&&!wC(0,this[n],n,t,!0)||(delete this[n],i=!0)}return i}normalize(t){const e=this,g={};return Uo.forEach(this,((i,n)=>{const A=Uo.findKey(g,n);if(A)return e[A]=bC(i),void delete e[n];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,g)=>e.toUpperCase()+g))}(n):String(n).trim();o!==n&&delete e[n],e[o]=bC(i),g[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Uo.forEach(this,((g,i)=>{null!=g&&!1!==g&&(e[i]=t&&Uo.isArray(g)?g.join(", "):g)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const g=new this(t);return e.forEach((t=>g.set(t))),g}static accessor(t){const e=(this[yC]=this[yC]={accessors:{}}).accessors,g=this.prototype;function i(t){const i=mC(t);e[i]||(function(t,e){const g=Uo.toCamelCase(" "+e);["get","set","has"].forEach((i=>{Object.defineProperty(t,i+g,{value:function(t,g,n){return this[i].call(this,e,t,g,n)},configurable:!0})}))}(g,t),e[i]=!0)}return Uo.isArray(t)?t.forEach(i):i(t),this}}xC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Uo.reduceDescriptors(xC.prototype,(({value:t},e)=>{let g=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[g]=t}}})),Uo.freezeMethods(xC);const kC=xC;function EC(t,e){const g=this||pC,i=e||g,n=kC.from(i.headers);let A=i.data;return Uo.forEach(t,(function(t){A=t.call(g,A,n.normalize(),e?e.status:void 0)})),n.normalize(),A}function OC(t){return!(!t||!t.__CANCEL__)}function TC(t,e,g){Xo.call(this,null==t?"canceled":t,Xo.ERR_CANCELED,e,g),this.name="CanceledError"}Uo.inherits(TC,Xo,{__CANCEL__:!0});const DC=TC,RC=dC.hasStandardBrowserEnv?{write(t,e,g,i,n,A){const o=[t+"="+encodeURIComponent(e)];Uo.isNumber(g)&&o.push("expires="+new Date(g).toGMTString()),Uo.isString(i)&&o.push("path="+i),Uo.isString(n)&&o.push("domain="+n),!0===A&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function SC(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const NC=dC.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let g;function i(g){let i=g;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return g=i(window.location.href),function(t){const e=Uo.isString(t)?i(t):t;return e.protocol===g.protocol&&e.host===g.host}}():function(){return!0};function PC(t,e){let g=0;const i=function(t,e){t=t||10;const g=new Array(t),i=new Array(t);let n,A=0,o=0;return e=void 0!==e?e:1e3,function(C){const I=Date.now(),r=i[o];n||(n=I),g[A]=C,i[A]=I;let s=o,a=0;for(;s!==A;)a+=g[s++],s%=t;if(A=(A+1)%t,A===o&&(o=(o+1)%t),I-n<e)return;const l=r&&I-r;return l?Math.round(1e3*a/l):void 0}}(50,250);return n=>{const A=n.loaded,o=n.lengthComputable?n.total:void 0,C=A-g,I=i(C);g=A;const r={loaded:A,total:o,progress:o?A/o:void 0,bytes:C,rate:I||void 0,estimated:I&&o&&A<=o?(o-A)/I:void 0,event:n};r[e?"download":"upload"]=!0,t(r)}}const MC={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,g){let i=t.data;const n=kC.from(t.headers).normalize();let A,o,{responseType:C,withXSRFToken:I}=t;function r(){t.cancelToken&&t.cancelToken.unsubscribe(A),t.signal&&t.signal.removeEventListener("abort",A)}if(Uo.isFormData(i))if(dC.hasStandardBrowserEnv||dC.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if(!1!==(o=n.getContentType())){const[t,...e]=o?o.split(";").map((t=>t.trim())).filter(Boolean):[];n.setContentType([t||"multipart/form-data",...e].join("; "))}let s=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";n.set("Authorization","Basic "+btoa(e+":"+g))}const a=SC(t.baseURL,t.url);function l(){if(!s)return;const i=kC.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(t,e,g){const i=g.config.validateStatus;g.status&&i&&!i(g.status)?e(new Xo("Request failed with status code "+g.status,[Xo.ERR_BAD_REQUEST,Xo.ERR_BAD_RESPONSE][Math.floor(g.status/100)-4],g.config,g.request,g)):t(g)}((function(t){e(t),r()}),(function(t){g(t),r()}),{data:C&&"text"!==C&&"json"!==C?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:i,config:t,request:s}),s=null}if(s.open(t.method.toUpperCase(),CC(a,t.params,t.paramsSerializer),!0),s.timeout=t.timeout,"onloadend"in s?s.onloadend=l:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(l)},s.onabort=function(){s&&(g(new Xo("Request aborted",Xo.ECONNABORTED,t,s)),s=null)},s.onerror=function(){g(new Xo("Network Error",Xo.ERR_NETWORK,t,s)),s=null},s.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const i=t.transitional||rC;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),g(new Xo(e,i.clarifyTimeoutError?Xo.ETIMEDOUT:Xo.ECONNABORTED,t,s)),s=null},dC.hasStandardBrowserEnv&&(I&&Uo.isFunction(I)&&(I=I(t)),I||!1!==I&&NC(a))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&RC.read(t.xsrfCookieName);e&&n.set(t.xsrfHeaderName,e)}void 0===i&&n.setContentType(null),"setRequestHeader"in s&&Uo.forEach(n.toJSON(),(function(t,e){s.setRequestHeader(e,t)})),Uo.isUndefined(t.withCredentials)||(s.withCredentials=!!t.withCredentials),C&&"json"!==C&&(s.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&s.addEventListener("progress",PC(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",PC(t.onUploadProgress)),(t.cancelToken||t.signal)&&(A=e=>{s&&(g(!e||e.type?new DC(null,t,s):e),s.abort(),s=null)},t.cancelToken&&t.cancelToken.subscribe(A),t.signal&&(t.signal.aborted?A():t.signal.addEventListener("abort",A)));const c=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(a);c&&-1===dC.protocols.indexOf(c)?g(new Xo("Unsupported protocol "+c+":",Xo.ERR_BAD_REQUEST,t)):s.send(i||null)}))}};Uo.forEach(MC,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const BC=t=>`- ${t}`,_C=t=>Uo.isFunction(t)||null===t||!1===t,zC=t=>{t=Uo.isArray(t)?t:[t];const{length:e}=t;let g,i;const n={};for(let A=0;A<e;A++){let e;if(g=t[A],i=g,!_C(g)&&(i=MC[(e=String(g)).toLowerCase()],void 0===i))throw new Xo(`Unknown adapter '${e}'`);if(i)break;n[e||"#"+A]=i}if(!i){const t=Object.entries(n).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let g=e?t.length>1?"since :\n"+t.map(BC).join("\n"):" "+BC(t[0]):"as no adapter specified";throw new Xo("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return i};function FC(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new DC(null,t)}function jC(t){return FC(t),t.headers=kC.from(t.headers),t.data=EC.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),zC(t.adapter||pC.adapter)(t).then((function(e){return FC(t),e.data=EC.call(t,t.transformResponse,e),e.headers=kC.from(e.headers),e}),(function(e){return OC(e)||(FC(t),e&&e.response&&(e.response.data=EC.call(t,t.transformResponse,e.response),e.response.headers=kC.from(e.response.headers))),Promise.reject(e)}))}const LC=t=>t instanceof kC?t.toJSON():t;function ZC(t,e){e=e||{};const g={};function i(t,e,g){return Uo.isPlainObject(t)&&Uo.isPlainObject(e)?Uo.merge.call({caseless:g},t,e):Uo.isPlainObject(e)?Uo.merge({},e):Uo.isArray(e)?e.slice():e}function n(t,e,g){return Uo.isUndefined(e)?Uo.isUndefined(t)?void 0:i(void 0,t,g):i(t,e,g)}function A(t,e){if(!Uo.isUndefined(e))return i(void 0,e)}function o(t,e){return Uo.isUndefined(e)?Uo.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function C(g,n,A){return A in e?i(g,n):A in t?i(void 0,g):void 0}const I={url:A,method:A,data:A,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:C,headers:(t,e)=>n(LC(t),LC(e),!0)};return Uo.forEach(Object.keys(Object.assign({},t,e)),(function(i){const A=I[i]||n,o=A(t[i],e[i],i);Uo.isUndefined(o)&&A!==C||(g[i]=o)})),g}const GC={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{GC[t]=function(g){return typeof g===t||"a"+(e<1?"n ":" ")+t}}));const VC={};GC.transitional=function(t,e,g){function i(t,e){return"[Axios v1.6.7] Transitional option '"+t+"'"+e+(g?". "+g:"")}return(g,n,A)=>{if(!1===t)throw new Xo(i(n," has been removed"+(e?" in "+e:"")),Xo.ERR_DEPRECATED);return e&&!VC[n]&&(VC[n]=!0,console.warn(i(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(g,n,A)}};const YC={assertOptions:function(t,e,g){if("object"!=typeof t)throw new Xo("options must be an object",Xo.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let n=i.length;for(;n-- >0;){const A=i[n],o=e[A];if(o){const e=t[A],g=void 0===e||o(e,A,t);if(!0!==g)throw new Xo("option "+A+" must be "+g,Xo.ERR_BAD_OPTION_VALUE)}else if(!0!==g)throw new Xo("Unknown option "+A,Xo.ERR_BAD_OPTION)}},validators:GC},WC=YC.validators;class UC{constructor(t){this.defaults=t,this.interceptors={request:new IC,response:new IC}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const g=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?g&&!String(t.stack).endsWith(g.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+g):t.stack=g}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=ZC(this.defaults,e);const{transitional:g,paramsSerializer:i,headers:n}=e;void 0!==g&&YC.assertOptions(g,{silentJSONParsing:WC.transitional(WC.boolean),forcedJSONParsing:WC.transitional(WC.boolean),clarifyTimeoutError:WC.transitional(WC.boolean)},!1),null!=i&&(Uo.isFunction(i)?e.paramsSerializer={serialize:i}:YC.assertOptions(i,{encode:WC.function,serialize:WC.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let A=n&&Uo.merge(n.common,n[e.method]);n&&Uo.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete n[t]})),e.headers=kC.concat(A,n);const o=[];let C=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(C=C&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const I=[];let r;this.interceptors.response.forEach((function(t){I.push(t.fulfilled,t.rejected)}));let s,a=0;if(!C){const t=[jC.bind(this),void 0];for(t.unshift.apply(t,o),t.push.apply(t,I),s=t.length,r=Promise.resolve(e);a<s;)r=r.then(t[a++],t[a++]);return r}s=o.length;let l=e;for(a=0;a<s;){const t=o[a++],e=o[a++];try{l=t(l)}catch(t){e.call(this,t);break}}try{r=jC.call(this,l)}catch(t){return Promise.reject(t)}for(a=0,s=I.length;a<s;)r=r.then(I[a++],I[a++]);return r}getUri(t){return CC(SC((t=ZC(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}Uo.forEach(["delete","get","head","options"],(function(t){UC.prototype[t]=function(e,g){return this.request(ZC(g||{},{method:t,url:e,data:(g||{}).data}))}})),Uo.forEach(["post","put","patch"],(function(t){function e(e){return function(g,i,n){return this.request(ZC(n||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:g,data:i}))}}UC.prototype[t]=e(),UC.prototype[t+"Form"]=e(!0)}));const HC=UC;class QC{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const g=this;this.promise.then((t=>{if(!g._listeners)return;let e=g._listeners.length;for(;e-- >0;)g._listeners[e](t);g._listeners=null})),this.promise.then=t=>{let e;const i=new Promise((t=>{g.subscribe(t),e=t})).then(t);return i.cancel=function(){g.unsubscribe(e)},i},t((function(t,i,n){g.reason||(g.reason=new DC(t,i,n),e(g.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new QC((function(e){t=e})),cancel:t}}}const KC=QC,XC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(XC).forEach((([t,e])=>{XC[e]=t}));const JC=XC,qC=function t(e){const g=new HC(e),i=ao(HC.prototype.request,g);return Uo.extend(i,HC.prototype,g,{allOwnKeys:!0}),Uo.extend(i,g,null,{allOwnKeys:!0}),i.create=function(g){return t(ZC(e,g))},i}(pC);qC.Axios=HC,qC.CanceledError=DC,qC.CancelToken=KC,qC.isCancel=OC,qC.VERSION="1.6.7",qC.toFormData=eC,qC.AxiosError=Xo,qC.Cancel=qC.CanceledError,qC.all=function(t){return Promise.all(t)},qC.spread=function(t){return function(e){return t.apply(null,e)}},qC.isAxiosError=function(t){return Uo.isObject(t)&&!0===t.isAxiosError},qC.mergeConfig=ZC,qC.AxiosHeaders=kC,qC.formToJSON=t=>hC(Uo.isHTMLForm(t)?new FormData(t):t),qC.getAdapter=zC,qC.HttpStatusCode=JC,qC.default=qC;const $C=qC;var tI=document.querySelector("input[name=csrfmiddlewaretoken]"),eI={headers:{"X-CSRFToken":tI?tI.value:""}};const gI=$C.create(eI),iI=function(){function t(t,e){this.running=!1,this.progress=null,this.available=!1,this.statusURL=t,this.runURL=e}return t.prototype.checkScanStatus=function(){var t=this;gI.get(this.statusURL).then((function(e){e.data&&e.data.status?(t.available=!1,t.running=!0,t.progress=e.data.progress):(t.available=!0,t.running=!1,t.progress=null)})).catch((function(){t.available=!1,t.running=!1,t.progress=null})),setTimeout(this.checkScanStatus,5e3)},t.prototype.run_vlans_scan=function(){var t=this;this.available&&gI.post(this.runURL).then((function(){t.available=!1,t.running=!0})).catch((function(){t.available=!1,t.running=!1}))},t}();var nI=g(107),AI=g(3379),oI=g.n(AI),CI=g(7795),II=g.n(CI),rI=g(569),sI=g.n(rI),aI=g(3565),lI=g.n(aI),cI=g(9216),uI=g.n(cI),dI=g(4589),hI=g.n(dI),fI=g(5070),pI={};pI.styleTagTransform=hI(),pI.setAttributes=lI(),pI.insert=sI().bind(null,"head"),pI.domAPI=II(),pI.insertStyleElement=uI(),oI()(fI.Z,pI),fI.Z&&fI.Z.locals&&fI.Z.locals;var vI=function(){return vI=Object.assign||function(t){for(var e,g=1,i=arguments.length;g<i;g++)for(var n in e=arguments[g])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},vI.apply(this,arguments)},yI={height:"900",locale:"ru",configure:{enabled:!1},layout:{randomSeed:12345},edges:{smooth:{enabled:!0,type:"dynamic"},arrows:{middle:{enabled:!0}}},interaction:{dragNodes:!0,hideEdgesOnDrag:!1,hideNodesOnDrag:!1},physics:{enabled:!0,repulsion:{centralGravity:.2,damping:.89,nodeDistance:130,springConstant:.05,springLength:200},solver:"repulsion",stabilization:{enabled:!0,fit:!0,iterations:1e3,onlyDynamicEdges:!1,updateInterval:50}},nodes:{size:14,font:{multi:!0,color:"#eeeeee",size:12}}},mI=function(){function t(t){this.elemID=t,this.options=yI}return t.prototype.textToDiv=function(t){var e=document.createElement("div");return e.innerHTML=t,e},t.prototype.renderVisualData=function(t,e,g){var i=this;void 0===g&&(g=null),new nI.Network(document.getElementById(this.elemID),{nodes:t.map((function(t){return vI(vI({},t),{title:i.textToDiv(t.title)})})),edges:e.map((function(t){return vI(vI({},t),{title:i.textToDiv(t.title)})}))},g||this.options)},t}();const bI=mI;var wI=function(){return wI=Object.assign||function(t){for(var e,g=1,i=arguments.length;g<i;g++)for(var n in e=arguments[g])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},wI.apply(this,arguments)};const xI=function(t,e){return f(t)?(()=>r({name:t.name},e,{setup:t}))():t}({name:"app",data:function(){return{macScanIcon:"",vlanScanStatus:new iI("/tools/api/vlans-scan/check","/tools/api/vlans-scan/run"),macScanStatus:new iI("/gather/mac-scan/check","/gather/mac-scan/run"),vlanTracerouteStarted:!1,macTracerouteStarted:!1,tracerouteMode:"vlan",input:{vlan:"",mac:""},inputVlanInfo:{name:"",description:""},vlanTracerouteOptions:{adminDownPorts:!1,showEmptyPorts:!1,doubleCheckVlan:!0,graphMinLength:3},vlanNetwork:new bI("vlan-network"),macNetwork:new bI("mac-network")}},created:function(){this.vlanScanStatus.checkScanStatus(),this.macScanStatus.checkScanStatus()},methods:{getInputVlanInfo:function(){var t=this;0!==this.validateVlan(this.input.vlan)&&gI.get("/tools/api/vlan-desc?vlan="+this.input.vlan).then((function(e){t.inputVlanInfo=e.data}))},toggleMode:function(){"vlan"===this.tracerouteMode?this.tracerouteMode="mac":"mac"===this.tracerouteMode&&(this.tracerouteMode="vlan")},getVisOptions:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t||(t={}),"vlan"===this.tracerouteMode?(this.vlanNetwork.options.edges.arrows.middle.enabled=!1,wI(wI({},this.vlanNetwork.options),t)):(this.macNetwork.options.edges.arrows.middle.enabled=!0,wI(wI({},this.macNetwork.options),t))},validateVlan:function(t){if(!/^\d+$/.test(t))return 0;var e=Number(t);return e>0&&e<=4096?e:0},load_vlan_traceroute:function(){var t=this;if(0!==this.validateVlan(this.input.vlan)){this.vlanTracerouteStarted=!0;var e="/tools/api/vlan-traceroute?vlan="+this.input.vlan+"&ep="+this.vlanTracerouteOptions.showEmptyPorts+"&ad="+this.vlanTracerouteOptions.adminDownPorts+"&double_check="+this.vlanTracerouteOptions.doubleCheckVlan+"&graph_min_length="+this.vlanTracerouteOptions.graphMinLength;gI.get(e).then((function(e){var g=e.data?e.data.options:null;t.vlanNetwork.renderVisualData(e.data.nodes,e.data.edges,t.getVisOptions(g)),t.vlanTracerouteStarted=!1})).catch((function(){return t.vlanTracerouteStarted=!1}))}},validateMac:function(t){return String(t).replace(/\W/g,"")},load_mac_traceroute:function(){var t=this,e=this.validateMac(this.input.mac);if(e.length){this.macTracerouteStarted=!0;var g="/gather/api/traceroute/mac-address/"+e+"/";gI.get(g).then((function(e){t.macNetwork.renderVisualData(e.data.nodes,e.data.edges,t.getVisOptions()),t.macTracerouteStarted=!1})).catch((function(){return t.macTracerouteStarted=!1}))}}}});var kI=g(4925),EI={};EI.styleTagTransform=hI(),EI.setAttributes=lI(),EI.insert=sI().bind(null,"head"),EI.domAPI=II(),EI.insertStyleElement=uI(),oI()(kI.Z,EI),kI.Z&&kI.Z.locals&&kI.Z.locals,((...t)=>{const e=(pA||(pA=function(t){return Pi(t)}(fA))).createApp(...t),{mount:g}=e;return e.mount=t=>{const i=function(t){return p(t)?document.querySelector(t):t}(t);if(!i)return;const n=e._component;f(n)||n.render||n.template||(n.template=i.innerHTML),i.innerHTML="";const A=g(i,!1,function(t){return t instanceof SVGElement?"svg":"function"==typeof MathMLElement&&t instanceof MathMLElement?"mathml":void 0}(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),A},e})((0,g(6021).Z)(xI,[["render",function(t,e,g,i,n,A){return Yi(),Qi("div",null,[tn("div",null,[tn("h5",{class:"text-muted back-title",onClick:e[0]||(e[0]=function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return t.toggleMode&&t.toggleMode.apply(t,e)})},q("vlan"===t.tracerouteMode?"MAC":"VLAN")+" Traceroute ",1)]),vg(tn("div",null,[tn("div",vA,[tn("div",yA,[mA,tn("div",bA,[An("                RAN WITH PROGRESS"),t.vlanScanStatus.running&&t.vlanScanStatus.progress&&t.vlanScanStatus.progress>0?(Yi(),Qi("div",wA,[xA,tn("div",kA,"Сканирование завершено на "+q(t.vlanScanStatus.progress)+"%",1)])):t.vlanScanStatus.running?(Yi(),Qi(Fi,{key:1},[An("                ALREADY RAN"),EA],2112)):!t.vlanScanStatus.running&&t.vlanScanStatus.available?(Yi(),Qi(Fi,{key:2},[An("                RUN VLAN SCAN"),tn("div",null,[(Yi(),Qi("svg",{style:{cursor:"pointer"},onClick:e[1]||(e[1]=function(){for(var e,g=[],i=0;i<arguments.length;i++)g[i]=arguments[i];return t.vlanScanStatus.run_vlans_scan&&(e=t.vlanScanStatus).run_vlans_scan.apply(e,g)}),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"white",class:"bi bi-arrow-clockwise",viewBox:"0 0 16 16"},OA))])],2112)):(Yi(),Qi(Fi,{key:3},[An("                ERROR"),TA],2112))])]),tn("div",DA,[tn("div",null,[vg(tn("input",{onKeyup:e[2]||(e[2]=hA((function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return t.load_vlan_traceroute&&t.load_vlan_traceroute.apply(t,e)}),["enter"])),onInput:e[3]||(e[3]=function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return t.getInputVlanInfo&&t.getInputVlanInfo.apply(t,e)}),"onUpdate:modelValue":e[4]||(e[4]=function(e){return t.input.vlan=e}),style:{"text-align":"center",width:"120px",height:"45px"},type:"text",class:"form-control rounded-5 me-2",autofocus:"",placeholder:"vlan"},null,544),[[aA,t.input.vlan]])]),t.vlanTracerouteStarted?An("v-if",!0):(Yi(),Qi("button",{key:0,onClick:e[5]||(e[5]=function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return t.load_vlan_traceroute&&t.load_vlan_traceroute.apply(t,e)}),class:"btn text-light"},RA)),t.inputVlanInfo.name?(Yi(),Qi("div",SA,q(t.inputVlanInfo.name)+" ("+q(t.inputVlanInfo.description)+") ",1)):An("v-if",!0)]),NA]),tn("div",PA,[vg(tn("input",{"onUpdate:modelValue":e[6]||(e[6]=function(e){return t.vlanTracerouteOptions.adminDownPorts=e}),class:"form-check-input",type:"checkbox",role:"switch",id:"only-admin-up"},null,512),[[lA,t.vlanTracerouteOptions.adminDownPorts]]),MA]),tn("div",BA,[vg(tn("input",{"onUpdate:modelValue":e[7]||(e[7]=function(e){return t.vlanTracerouteOptions.showEmptyPorts=e}),class:"form-check-input",type:"checkbox",role:"switch",id:"empty-ports"},null,512),[[lA,t.vlanTracerouteOptions.showEmptyPorts]]),_A]),tn("div",zA,[vg(tn("input",{"onUpdate:modelValue":e[8]||(e[8]=function(e){return t.vlanTracerouteOptions.doubleCheckVlan=e}),class:"form-check-input",type:"checkbox",role:"switch",id:"double-check-vlan"},null,512),[[lA,t.vlanTracerouteOptions.doubleCheckVlan]]),FA]),tn("div",jA,[tn("div",LA,[tn("div",ZA,[tn("span",{onClick:e[9]||(e[9]=function(e){return t.vlanTracerouteOptions.graphMinLength>1?t.vlanTracerouteOptions.graphMinLength--:null}),class:"input-group-text noselect cursor-pointer"},GA),tn("input",{disabled:"",value:t.vlanTracerouteOptions.graphMinLength,id:"min-graph-length",type:"text",class:"form-control text-center"},null,8,VA),tn("span",{onClick:e[10]||(e[10]=function(e){return t.vlanTracerouteOptions.graphMinLength++}),class:"input-group-text noselect cursor-pointer"},YA)])]),WA])],512),[[Un,"vlan"===t.tracerouteMode]]),vg(tn("div",null,[tn("div",UA,[tn("div",HA,[QA,tn("div",KA,[An("                RAN WITH PROGRESS"),t.macScanStatus.running&&t.macScanStatus.progress&&t.macScanStatus.progress>0?(Yi(),Qi("div",XA,[JA,tn("div",qA,"Сканирование завершено на "+q(t.macScanStatus.progress)+"%",1)])):t.macScanStatus.running?(Yi(),Qi(Fi,{key:1},[An("                ALREADY RAN"),$A],2112)):!t.macScanStatus.running&&t.macScanStatus.available?(Yi(),Qi(Fi,{key:2},[An("                RUN MAC SCAN"),tn("div",null,[(Yi(),Qi("svg",{style:{cursor:"pointer"},onClick:e[11]||(e[11]=function(){for(var e,g=[],i=0;i<arguments.length;i++)g[i]=arguments[i];return t.macScanStatus.run_vlans_scan&&(e=t.macScanStatus).run_vlans_scan.apply(e,g)}),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"white",class:"bi bi-arrow-clockwise",viewBox:"0 0 16 16"},to))])],2112)):(Yi(),Qi(Fi,{key:3},[An("                ERROR"),eo],2112))])]),tn("div",go,[tn("div",null,[vg(tn("input",{onKeyup:e[12]||(e[12]=hA((function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return t.load_mac_traceroute&&t.load_mac_traceroute.apply(t,e)}),["enter"])),"onUpdate:modelValue":e[13]||(e[13]=function(e){return t.input.mac=e}),style:{"text-align":"center",width:"200px",height:"45px"},type:"text",class:"form-control rounded-5",autofocus:"",placeholder:"mac"},null,544),[[aA,t.input.mac]])]),t.macTracerouteStarted?An("v-if",!0):(Yi(),Qi("button",{key:0,onClick:e[14]||(e[14]=function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g];return t.load_mac_traceroute&&t.load_mac_traceroute.apply(t,e)}),class:"btn text-light"},io))])])],512),[[Un,"mac"===t.tracerouteMode]]),An("FULL SCREEN"),no,An("COLLAPSE SCREEN"),Ao,An("LOAD TRACEROUTE"),t.vlanTracerouteStarted||t.macTracerouteStarted?(Yi(),Qi("div",oo,Co)):An("v-if",!0),tn("div",Io,[An("TRACEROUTE"),vg(tn("div",ro,null,512),[[Un,"vlan"===t.tracerouteMode]]),vg(tn("div",so,null,512),[[Un,"mac"===t.tracerouteMode]])])])}]])).mount("#app")})()})();